Bug 928157 - Fix for swipe gestures triggering scrollbars on the start tab. r=tabraldes
authorJim Mathies <jmathies@mozilla.com>
Fri, 18 Oct 2013 12:33:52 -0500
changeset 166165 f0208c342805e4b88aabf142bd97c6d8a6696596
parent 166164 894025edbb7ba4e478e0386612d639102e619837
child 166166 0cc4a019835f096a5df82d9070db9b96addc75d6
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstabraldes
bugs928157
milestone27.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 928157 - Fix for swipe gestures triggering scrollbars on the start tab. r=tabraldes
widget/windows/winrt/MetroInput.cpp
--- a/widget/windows/winrt/MetroInput.cpp
+++ b/widget/windows/winrt/MetroInput.cpp
@@ -267,24 +267,24 @@ MetroInput::UpdateInputLevel(InputPrecis
 uint16_t
 MetroInput::ProcessInputTypeForGesture(UI::Input::IEdgeGestureEventArgs* aArgs)
 {
   MOZ_ASSERT(aArgs);
   UI::Input::EdgeGestureKind kind;
   aArgs->get_Kind(&kind);
   switch(kind) {
     case UI::Input::EdgeGestureKind::EdgeGestureKind_Touch:
-      UpdateInputLevel(LEVEL_PRECISE);
+      UpdateInputLevel(LEVEL_IMPRECISE);
       return nsIDOMMouseEvent::MOZ_SOURCE_TOUCH;
     break;
     case UI::Input::EdgeGestureKind::EdgeGestureKind_Keyboard:
       return nsIDOMMouseEvent::MOZ_SOURCE_KEYBOARD;
     break;
     case UI::Input::EdgeGestureKind::EdgeGestureKind_Mouse:
-      UpdateInputLevel(LEVEL_IMPRECISE);
+      UpdateInputLevel(LEVEL_PRECISE);
       return nsIDOMMouseEvent::MOZ_SOURCE_MOUSE;
     break;
   }
   return nsIDOMMouseEvent::MOZ_SOURCE_UNKNOWN;
 }
 
 /**
  * When the user swipes her/his finger in from the top of the screen,