[Webkit-unassigned] [Bug 86618] mousedown + mousemove causes click event to fire on SVG element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 18 05:17:15 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86618





--- Comment #6 from Adrian Phinney <adrian.phinney at gmail.com>  2012-05-18 05:16:19 PST ---
> > On Windows, from every implementation of click events that I've seen (.NET, Java and FF/IE), a click only occurs when the mouse goes outside of the bounds defined in SM_CYDRAG and SM_CXDRAG retrieved with GetSystemMetrics (http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx).
> 
> You mean when the mouse stays within the bounds? I'm certainly aware of that but that's not what the specification says.

Yes, however these bounds are a tiny box (4px) and *not* the bounds of the actual shape (which is what is happening in for this bug report). Clicking is practically impossible if the mouseup/mousedown points have to be equivalent. Every browser that I've tested with uses Window's SM_CYDRAG/SM_CXDRAG for regular HTML elements to detect between a drag and a click. 

However, my issue is that the "click" bounds for SVG elements seem to be *the whole element* and therefore a click is always fired.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list