TIVI-2082: Do not emulate mouse events in WebCore while dealing with a tap gesture. 11/12911/2
authorJoone Hur <joone.hur@intel.com>
Tue, 26 Nov 2013 01:54:05 +0000 (17:54 -0800)
committerJoone Hur <joone.hur@intel.com>
Wed, 8 Jan 2014 01:41:28 +0000 (17:41 -0800)
Tizen IVI emulates mouse events using touch events so we do not need
to emulate mouse events in WebCore while handling a tap gesture.

Change-Id: I85a57d71572b12b488fb3e1045a766c38e4176c9

Source/WebCore/page/EventHandler.cpp

index 64ac373..3079c6a 100755 (executable)
@@ -2627,12 +2627,14 @@ bool EventHandler::handleGestureTap(const PlatformGestureEvent& gestureEvent)
 #endif
 
     bool defaultPrevented = false;
+#if !ENABLE(TIZEN_DESKTOP_BROWSING)
     PlatformMouseEvent fakeMouseMove(adjustedPoint, gestureEvent.globalPosition(), NoButton, PlatformEvent::MouseMoved, /* clickCount */ 0, gestureEvent.shiftKey(), gestureEvent.ctrlKey(), gestureEvent.altKey(), gestureEvent.metaKey(), gestureEvent.timestamp());
     PlatformMouseEvent fakeMouseDown(adjustedPoint, gestureEvent.globalPosition(), LeftButton, PlatformEvent::MousePressed, /* clickCount */ 1, gestureEvent.shiftKey(), gestureEvent.ctrlKey(), gestureEvent.altKey(), gestureEvent.metaKey(), gestureEvent.timestamp());
     PlatformMouseEvent fakeMouseUp(adjustedPoint, gestureEvent.globalPosition(), LeftButton, PlatformEvent::MouseReleased, /* clickCount */ 1, gestureEvent.shiftKey(), gestureEvent.ctrlKey(), gestureEvent.altKey(), gestureEvent.metaKey(), gestureEvent.timestamp());
     mouseMoved(fakeMouseMove);
     defaultPrevented |= handleMousePressEvent(fakeMouseDown);
     defaultPrevented |= handleMouseReleaseEvent(fakeMouseUp);
+#endif
     return defaultPrevented;
 }