[Bug 24923] What should happen to the mouse events if pointer event listener removes the target from document or hides it?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24923

Scott González <scott.gonzalez@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |scott.gonzalez@gmail.com

--- Comment #4 from Scott González <scott.gonzalez@gmail.com> ---
If the compatibility mouse event silently vanished, it could break a pretty
common pattern. Because mouse events don't have pointer capture, it's common to
implement dragging behaviors by binding a mousedown handler on a specific
element, but then binding mousemove and mouseup handlers on the document and
removing them on mouseup. This pattern already breaks if you move your mouse
out of the window before the mouseup, but I don't think we want to introduce
another scenario where this can break.

I haven't spent enough time thinking about how such code would be interacting
with newer code that's leveraging pointer events, but I'm sure the mixture is
going to happen quite a bit over the next few years.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 5 March 2014 13:18:00 UTC