[Webkit-unassigned] [Bug 150020] New: Allow access to WheelEvent phase and momentumPhase from JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 11 16:16:03 PDT 2015


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

            Bug ID: 150020
           Summary: Allow access to WheelEvent phase and momentumPhase
                    from JavaScript
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Event Handling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: devongovett+webkit at gmail.com

Currently, it is impossible to know whether a WheelEvent is caused by direct user manipulation, or whether it is the result of momentum scrolling (deceleration). In certain circumstances it would be useful to be able to distinguish between these cases from JavaScript "wheel" event handlers, for example when implementing a custom scroll view. I noticed that WheelEvent already has phase and momentumPhase properties (at least on the Mac), with values based on the ones given by Cocoa's NSEvent [1]. I propose exposing those values to JavaScript. My guess is that some cross-platform normalization might be necessary here, but I don't know enough about other platforms to know how they work in this respect.

[1] https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/#//apple_ref/occ/instp/NSEvent/momentumPhase

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151011/c2381a59/attachment.html>


More information about the webkit-unassigned mailing list