Changeset 180018 in webkit


Ignore:
Timestamp:
Feb 12, 2015 3:09:05 PM (9 years ago)
Author:
Beth Dakin
Message:

REGRESSION: Should not send wheel events with a delta of 0
https://bugs.webkit.org/show_bug.cgi?id=141537
-and corresponding-
rdar://problem/18903118

Reviewed by Simon Fraser.

Source/WebCore:

This code should not have been removed entirely to accommodate rubber-banding, it
just needs to return false instead of true in order to allow the MayBegin and
Ended phases to be handled by the ElasticityController.

  • dom/Element.cpp:

(WebCore::Element::dispatchWheelEvent):

LayoutTests:

  • platform/mac-wk2/tiled-drawing/scrolling/wheel-events-with-no-delta-expected.txt: Added.
  • platform/mac-wk2/tiled-drawing/scrolling/wheel-events-with-no-delta.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r180005 r180018  
     12015-02-12  Beth Dakin  <bdakin@apple.com>
     2
     3        REGRESSION: Should not send wheel events with a delta of 0
     4        https://bugs.webkit.org/show_bug.cgi?id=141537
     5        -and corresponding-
     6        rdar://problem/18903118
     7
     8        Reviewed by Simon Fraser.
     9
     10        * platform/mac-wk2/tiled-drawing/scrolling/wheel-events-with-no-delta-expected.txt: Added.
     11        * platform/mac-wk2/tiled-drawing/scrolling/wheel-events-with-no-delta.html: Added.
     12
    1132015-02-12  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r180013 r180018  
     12015-02-12  Beth Dakin  <bdakin@apple.com>
     2
     3        REGRESSION: Should not send wheel events with a delta of 0
     4        https://bugs.webkit.org/show_bug.cgi?id=141537
     5        -and corresponding-
     6        rdar://problem/18903118
     7
     8        Reviewed by Simon Fraser.
     9
     10        This code should not have been removed entirely to accommodate rubber-banding, it
     11        just needs to return false instead of true in order to allow the MayBegin and
     12        Ended phases to be handled by the ElasticityController.
     13        * dom/Element.cpp:
     14        (WebCore::Element::dispatchWheelEvent):
     15
    1162015-02-12  Dean Jackson  <dino@apple.com>
    217
  • trunk/Source/WebCore/dom/Element.cpp

    r179791 r180018  
    280280bool Element::dispatchWheelEvent(const PlatformWheelEvent& event)
    281281{
     282    if (!event.deltaX() && !event.deltaY())
     283        return false;
     284
    282285    RefPtr<WheelEvent> wheelEvent = WheelEvent::create(event, document().defaultView());
    283286    return EventDispatcher::dispatchEvent(this, wheelEvent) && !wheelEvent->defaultHandled();
Note: See TracChangeset for help on using the changeset viewer.