Changeset 167648 in webkit


Ignore:
Timestamp:
Apr 21, 2014 8:59:06 PM (10 years ago)
Author:
Brent Fulgham
Message:

[Mac] After a horizontal overflow scroll with a mechanical wheel mouse, vertical scrolling no longer works
https://bugs.webkit.org/show_bug.cgi?id=131960
<rdar://problem/16142100>

Reviewed by Darin Adler.

Source/WebCore:
Test: platform/mac/fast/scrolling/scroll-div-no-latching.html

  • page/EventHandler.cpp:

(WebCore::EventHandler::handleWheelEvent): When not latching, always clear m_latchedWheelEventElement and m_previousWheelScrolledElement.

LayoutTests:

  • platform/mac/fast/scrolling/scroll-div-no-latching-expected.txt: Added.
  • platform/mac/fast/scrolling/scroll-div-no-latching.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167637 r167648  
     12014-04-21  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Mac] After a horizontal overflow scroll with a mechanical wheel mouse, vertical scrolling no longer works
     4        https://bugs.webkit.org/show_bug.cgi?id=131960
     5        <rdar://problem/16142100>
     6
     7        Reviewed by Darin Adler.
     8
     9        * platform/mac/fast/scrolling/scroll-div-no-latching-expected.txt: Added.
     10        * platform/mac/fast/scrolling/scroll-div-no-latching.html: Added.
     11
    1122014-04-21  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r167647 r167648  
     12014-04-21  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Mac] After a horizontal overflow scroll with a mechanical wheel mouse, vertical scrolling no longer works
     4        https://bugs.webkit.org/show_bug.cgi?id=131960
     5        <rdar://problem/16142100>
     6
     7        Reviewed by Darin Adler.
     8
     9        Test: platform/mac/fast/scrolling/scroll-div-no-latching.html
     10
     11        * page/EventHandler.cpp:
     12        (WebCore::EventHandler::handleWheelEvent): When not latching, always clear m_latchedWheelEventElement and m_previousWheelScrolledElement.
     13
    1142014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/WebCore/page/EventHandler.cpp

    r167594 r167648  
    25772577    platformPrepareForWheelEvents(e, result, element, scrollableContainer, scrollableArea, isOverWidget);
    25782578
     2579    if (!e.useLatchedEventElement()) {
     2580        m_latchedWheelEventElement = nullptr;
     2581        m_previousWheelScrolledElement = nullptr;
     2582    }
     2583
    25792584    // FIXME: It should not be necessary to do this mutation here.
    25802585    // Instead, the handlers should know convert vertical scrolls
Note: See TracChangeset for help on using the changeset viewer.