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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 21 17:58:45 PDT 2012


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

           Summary: DOM 3 Event, mousedown and mouseup default actions
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/
                    DOM3-Events.html
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sirisian at gmail.com


After receiving a response and specification change for the DOM 3 Event Specification from this discussion:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=8406

The following changes need either discussion or changes in webkit.
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#event-type-mousedown
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#event-type-mouseup

Both now have cancelable default actions. This basically allows a developer to effortlessly prevent a context menu or a middle mouse scroll/pan operation among other things that can now be cancelled.

For instance, if a user wanted to stop the context menu they just have to call event.preventDefault(); to stop it. If they want to stop say the middle mouse pan because they're using the middle mouse button they can just called event.preventDefault() on the mousedown event to stop either the momentary scroll or the toggled scroll. (The momentary being when the user holds down the middle mouse button and the toggle one is when the user clicks the middle mouse wheel activating the scroll until they disable it).

This also makes the non-standard contextmenu event kind of worthless.

Not sure how webkit feels implementing the editor draft like this. (Note they still haven't implemented the MouseEvent "buttons" member. I'll submit another bug since this one can probably use it when choosing when you preventDefault()).

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