[BLACKBERRY] Add notification if an element does not have touch move or mouse move...
[WebKit-https.git] / Source / WebKit / blackberry / WebKitSupport / TouchEventHandler.cpp
index 76b88ef..ee3a75f 100644 (file)
@@ -196,6 +196,9 @@ bool TouchEventHandler::handleTouchPoint(Platform::TouchPoint& point, bool useFa
             Element* possibleTargetNodeForMouseMoveEvents = static_cast<Element*>(m_lastFatFingersResult.positionWasAdjusted() ? elementUnderFatFinger : m_lastFatFingersResult.node());
             m_convertTouchToMouse = pureWithMouseConversion ? true : shouldConvertTouchToMouse(possibleTargetNodeForMouseMoveEvents);
 
+            if (!possibleTargetNodeForMouseMoveEvents || (!possibleTargetNodeForMouseMoveEvents->hasEventListeners(eventNames().touchmoveEvent) && !m_convertTouchToMouse))
+                m_webPage->client()->notifyNoMouseMoveOrTouchMoveHandlers();
+
             if (elementUnderFatFinger)
                 drawTapHighlight();