Changeset 140321 in webkit
- Timestamp:
- Jan 21, 2013 4:06:57 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140320 r140321 1 2013-01-21 Alexander Pavlov <apavlov@chromium.org> 2 3 Web Inspector: Do not dispatch mousemove when emulating touch event and no touch is active 4 https://bugs.webkit.org/show_bug.cgi?id=107419 5 6 Reviewed by Pavel Feldman. 7 8 * fast/events/touch/emulate-touch-events.html: Test that mousemove is dispatched not more than once 9 and reset the touch event emulation flag in window.internals.settings upon test completion. 10 * fast/events/touch/emulated-touch-iframe.html: 11 Reset the touch event emulation flag in window.internals.settings upon test completion. 12 1 13 2013-01-21 Andrey Lushnikov <lushnikov@chromium.org> 2 14 -
trunk/LayoutTests/fast/events/touch/emulate-touch-events.html
r140313 r140321 19 19 debug(event.type); 20 20 21 if (window.testRunner && touchEventsReceived == EXPECTED_TOUCH_EVENTS_TOTAL) 21 if (window.testRunner && touchEventsReceived == EXPECTED_TOUCH_EVENTS_TOTAL) { 22 window.internals.settings.setTouchEventEmulationEnabled(false); 22 23 finishJSTest(); 24 } 25 } 26 27 function mouseMoveCallback(e) { 28 if (!lastEvent) 29 debug("Unexpected mousemove event received before touchstart"); 23 30 } 24 31 … … 26 33 div.addEventListener("touchmove", touchEventCallback, false); 27 34 div.addEventListener("touchend", touchEventCallback, false); 35 div.addEventListener("mousemove", mouseMoveCallback, false); 28 36 29 37 function verifyTouchEvent(type, totalTouchCount, changedTouchCount, targetTouchCount) -
trunk/LayoutTests/fast/events/touch/emulated-touch-iframe.html
r137295 r140321 22 22 23 23 debug("touchend (test will time out if broken)"); 24 window.internals.settings.setTouchEventEmulationEnabled(false); 24 25 window.testRunner.notifyDone(); 25 26 } -
trunk/Source/WebCore/ChangeLog
r140320 r140321 1 2013-01-21 Alexander Pavlov <apavlov@chromium.org> 2 3 Web Inspector: Do not dispatch mousemove when emulating touch event and no touch is active 4 https://bugs.webkit.org/show_bug.cgi?id=107419 5 6 Reviewed by Pavel Feldman. 7 8 mousemove event should not be dispatched when emulating touch events and mouse button is not pressed 9 10 * page/EventHandler.cpp: 11 (WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled): 12 1 13 2013-01-21 Andrey Lushnikov <lushnikov@chromium.org> 2 14 -
trunk/Source/WebCore/page/EventHandler.cpp
r140313 r140321 3982 3982 3983 3983 if (eventType == PlatformEvent::MouseMoved && !m_touchPressed) 3984 return false;3984 return true; 3985 3985 3986 3986 HitTestRequest request(HitTestRequest::Active);
Note: See TracChangeset
for help on using the changeset viewer.