ev.relatedTarget in pointerleave indicates departure element, not destination element

Won’t fix Issue #304886

Details

Created
Jun 10, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

http://jsfiddle.net/6xSYY/6/](http://jsfiddle.net/6xSYY/6/)[URL:http://jsfiddle.net/6xSYY/6/](http://jsfiddle.net/6xSYY/6/)

Repro Steps:

==============

(Watch attached video or perform the following steps)

  1. load samplehttp://jsfiddle.net/6xSYY/6/](http://jsfiddle.net/6xSYY/6/)[http://jsfiddle.net/6xSYY/6/](http://jsfiddle.net/6xSYY/6/)

  2. starting on the left mouse over blue div ' touchpanel’

  3. mouse over div 1 (notice the output displayed) Current target is Div1 (where the mouse pointer is located) related is touchpanel (where we just left)

  4. move the mouse over div2 (notice the output displayed) Current target is Div2 (where the mouse pointer is located) related is Div1 (where we just left)

  5. move the mouse over div3 (notice the output displayed) Current target is Div3 (where the mouse pointer is located) related is Div2 (where we just left)

  1. move the mouse back over div2 (notice the output displayed) Current target is Div3 (should be Div2 where the mouse pointer is located) related is Div3

  2. move the mouse back over div1 (notice the output displayed) Current target is Div2 (should be Div1 where the mouse pointer is located) related is Div2

(old repro steps)

  1. Attach a pointerleave event listener to a child element

  2. See the element ev.relatedTarget indicates

or

Just click this to see the http://jsfiddle.net/saschanaz/6xSYY/](http://jsfiddle.net/saschanaz/6xSYY/)[http://jsfiddle.net/saschanaz/6xSYY/](http://jsfiddle.net/saschanaz/6xSYY/)

Expected Results:

==============

ev.relatedTarget in pointerleave should indicate the element the current pointer leaving "to".

ev.relatedTarget should indicate the destination element.

Actual Results:

==============

ev.relatedTarget in pointerleave indicates the wrong element the current pointer leaving "to".

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Sermet I.”

      Changed Steps to Reproduce

      Changed Assigned To from “Sermet I.” to “Ted D.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed”

      Changed Assigned To from “Ted D.” to “Sermet I.”

      Changed Assigned To from “Sermet I.” to “Alexander W.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Alexander W.” to “IE F.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Status from “Won’t fix” to “Fixed”

      Changed Status from “Fixed” to “Won’t fix”

    You need to sign in to your Microsoft account to add a comment.

    Sign in