[Webkit-unassigned] [Bug 81853] DOM 3 Event, mousedown and mouseup default actions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 10 20:55:58 PDT 2012


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





--- Comment #4 from Brandon Andrews <sirisian at gmail.com>  2012-04-10 20:55:59 PST ---
It would only effect the mouse on the mousedown and mouseup events where the user can cancel the default UI behavior of the contextmenu or the middle mouse panning action. The context menu can already be canceled via the non-standard oncontextmenu event so we've seen there is no performance impact with allowing preventDefault to do it upon mouseup for right click. For the middle mouse button down calling preventDefault would just tell the UI not to start a pan action on that mouse down or mouse up. Both have no real performance impact since all the user-agent has to do is check if the default action was cancelled before it does its own action. If it was then they don't execute the implementation specific action for mouseup/mousedown. If it wasn't prevented then they can do whatever. Hopefully that makes sense. (preventDefault for middle mousedown/mouseup does not effect the wheel scroll if that isn't clear. The wheel event's preventDefault has existed in the dom 3 events fore
 ver and was discussed years ago and accepted).

-- 
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