Commit 6944b1ab authored by adele's avatar adele

Reviewed by Darin and John.

        - Fix for <rdar://problem/4816550> REGRESSION: autoscrolling doesn't work after double-click

        * page/EventHandler.cpp: (WebCore::EventHandler::handleMousePressEvent): Set swallowEvent bool instead
          of returning early for double and triple clicks.



git-svn-id: svn://svn.chromium.org/blink/trunk@18921 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 2621ed75
2007-01-17 Adele Peterson <adele@apple.com>
Reviewed by Darin and John.
- Fix for <rdar://problem/4816550> REGRESSION: autoscrolling doesn't work after double-click
* page/EventHandler.cpp: (WebCore::EventHandler::handleMousePressEvent): Set swallowEvent bool instead
of returning early for double and triple clicks.
2007-01-17 Darin Adler <darin@apple.com> 2007-01-17 Darin Adler <darin@apple.com>
Reviewed by Hyatt. Reviewed by Hyatt.
......
...@@ -273,10 +273,11 @@ bool EventHandler::handleMousePressEvent(const MouseEventWithHitTestResults& eve ...@@ -273,10 +273,11 @@ bool EventHandler::handleMousePressEvent(const MouseEventWithHitTestResults& eve
m_beganSelectingText = false; m_beganSelectingText = false;
if (event.event().clickCount() == 2) if (event.event().clickCount() == 2)
return handleMousePressEventDoubleClick(event); swallowEvent = handleMousePressEventDoubleClick(event);
if (event.event().clickCount() >= 3) else if (event.event().clickCount() >= 3)
return handleMousePressEventTripleClick(event); swallowEvent = handleMousePressEventTripleClick(event);
swallowEvent = handleMousePressEventSingleClick(event); else
swallowEvent = handleMousePressEventSingleClick(event);
} }
m_mouseDownMayStartAutoscroll = m_mouseDownMayStartSelect || m_mouseDownMayStartAutoscroll = m_mouseDownMayStartSelect ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment