Changeset 142752 in webkit


Ignore:
Timestamp:
Feb 13, 2013 8:25:05 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents.
https://bugs.webkit.org/show_bug.cgi?id=109611

The deltas in mousewheel events generated by track can be accelerated (e.g. when
scrolling repeatedly). Keep track of the ratio of the acceleration since that is
useful for some tasks (e.g. overflow navigation gesture).

Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2013-02-13
Reviewed by Adam Barth.

  • public/WebInputEvent.h:

(WebKit::WebMouseWheelEvent::WebMouseWheelEvent):

  • src/WebInputEvent.cpp:

(SameSizeAsWebMouseWheelEvent):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r142710 r142752  
     12013-02-13  Sadrul Habib Chowdhury  <sadrul@chromium.org>
     2
     3        [chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents.
     4        https://bugs.webkit.org/show_bug.cgi?id=109611
     5
     6        The deltas in mousewheel events generated by track can be accelerated (e.g. when
     7        scrolling repeatedly). Keep track of the ratio of the acceleration since that is
     8        useful for some tasks (e.g. overflow navigation gesture).
     9
     10        Reviewed by Adam Barth.
     11
     12        * public/WebInputEvent.h:
     13        (WebKit::WebMouseWheelEvent::WebMouseWheelEvent):
     14        * src/WebInputEvent.cpp:
     15        (SameSizeAsWebMouseWheelEvent):
     16
    1172013-02-12  Yoshifumi Inoue  <yosin@chromium.org>
    218
  • trunk/Source/WebKit/chromium/public/WebInputEvent.h

    r142571 r142752  
    368368    float wheelTicksY;
    369369
     370    float accelerationRatioX;
     371    float accelerationRatioY;
     372
    370373    // See comment at the top of the file for why an int is used here.
    371374    int scrollByPage;
     
    382385        , wheelTicksX(0.0f)
    383386        , wheelTicksY(0.0f)
     387        , accelerationRatioX(1.0f)
     388        , accelerationRatioY(1.0f)
    384389        , scrollByPage(false)
    385390        , hasPreciseScrollingDeltas(false)
  • trunk/Source/WebKit/chromium/src/WebInputEvent.cpp

    r136325 r142752  
    5757
    5858struct SameSizeAsWebMouseWheelEvent : public SameSizeAsWebMouseEvent {
    59     int mousewheelData[8];
     59    int mousewheelData[10];
    6060};
    6161
Note: See TracChangeset for help on using the changeset viewer.