Bug 739417 - InputReader doesn't send motion up events, r=cjones NPOTB DONTBUILD
authorMichael Wu <mwu@mozilla.com>
Mon, 26 Mar 2012 16:48:16 -0700
changeset 93618 18fedd79d6ccc214906b8ec2f3d892436afd15b3
parent 93617 7f4d6e62d1f745250ae619c8fb3940468255a588
child 93619 5adbca606d517b3759bb024fbab7a07c0bdd9850
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs739417
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 739417 - InputReader doesn't send motion up events, r=cjones NPOTB DONTBUILD
widget/gonk/libui/InputReader.cpp
--- a/widget/gonk/libui/InputReader.cpp
+++ b/widget/gonk/libui/InputReader.cpp
@@ -5629,16 +5629,20 @@ void MultiTouchInputMapper::syncTouch(ns
         outPointer.touchMinor = inSlot->getTouchMinor();
         outPointer.toolMajor = inSlot->getToolMajor();
         outPointer.toolMinor = inSlot->getToolMinor();
         outPointer.orientation = inSlot->getOrientation();
         outPointer.distance = inSlot->getDistance();
         outPointer.tiltX = 0;
         outPointer.tiltY = 0;
 
+        // Mozilla bug 739417
+        if (!outPointer.touchMajor)
+            continue;
+
         outPointer.toolType = inSlot->getToolType();
         if (outPointer.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) {
             outPointer.toolType = mTouchButtonAccumulator.getToolType();
             if (outPointer.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) {
                 outPointer.toolType = AMOTION_EVENT_TOOL_TYPE_FINGER;
             }
         }