Web Inspector: Do not dispatch mousemove when emulating touch event and no touch...
authorapavlov@chromium.org <apavlov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2013 12:06:57 +0000 (12:06 +0000)
committerapavlov@chromium.org <apavlov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2013 12:06:57 +0000 (12:06 +0000)
commit2f2aefce29449ec2eb34759befd97533b6acebd9
treed738c09aa09c742c3301b47031b1b81706fa334d
parent5be752b08f0f0151631c9a1797d0c1f7bd125b69
Web Inspector: Do not dispatch mousemove when emulating touch event and no touch is active
https://bugs.webkit.org/show_bug.cgi?id=107419

Reviewed by Pavel Feldman.

Source/WebCore:

mousemove event should not be dispatched when emulating touch events and mouse button is not pressed

* page/EventHandler.cpp:
(WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled):

LayoutTests:

* fast/events/touch/emulate-touch-events.html: Test that mousemove is dispatched not more than once
  and reset the touch event emulation flag in window.internals.settings upon test completion.
* fast/events/touch/emulated-touch-iframe.html:
  Reset the touch event emulation flag in window.internals.settings upon test completion.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/emulate-touch-events.html
LayoutTests/fast/events/touch/emulated-touch-iframe.html
Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.cpp