Source/WebCore: Don't request a clickCount of 1 on mouseMove event generated by tap...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2012 20:10:18 +0000 (20:10 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2012 20:10:18 +0000 (20:10 +0000)
commit48342125f55fe61411d1675cf4a97098f32dc42d
treec9cfdf4cdb34cbc38456484adf04943dd09608a4
parent7f19db3f69f9d426c32127df2f0a884838ca9318
Source/WebCore: Don't request a clickCount of 1 on mouseMove event generated by tap gestures
https://bugs.webkit.org/show_bug.cgi?id=92779

Patch by Rick Byers <rbyers@chromium.org> on 2012-08-01
Reviewed by Adam Barth.

mousemove events don't have a click count, so we shouldn't be passing 1
here.  Note this makes no real difference in practice since the value is
ignored - fixed strictly for pedantics.

Test: fast/events/touch/gesture/gesture-click

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

LayoutTests: Make Gesture click test validate click count in UIEvent.detail
https://bugs.webkit.org/show_bug.cgi?id=92779

Patch by Rick Byers <rbyers@chromium.org> on 2012-08-01
Reviewed by Adam Barth.

Also validates that no dblclick event is fired for this single click.
* fast/events/touch/gesture/gesture-click.html:
* platform/chromium/fast/events/touch/gesture/gesture-click-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/gesture/gesture-click.html
LayoutTests/platform/chromium/fast/events/touch/gesture/gesture-click-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.cpp