cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject git commit: Supress inertia scrolling optionally
Date Mon, 29 Sep 2014 23:30:39 GMT
Repository: cordova-wp8
Updated Branches:
  refs/heads/master 2e90a4735 -> 07b0b418c


Supress inertia scrolling optionally


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/07b0b418
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/07b0b418
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/07b0b418

Branch: refs/heads/master
Commit: 07b0b418c5f3710af7e780a364e7208efa7b63f8
Parents: 2e90a47
Author: Nadya Atanasova <nadya.it@gmail.com>
Authored: Mon Sep 29 16:51:00 2014 +0300
Committer: Nadya Atanasova <nadya.it@gmail.com>
Committed: Mon Sep 29 16:51:00 2014 +0300

----------------------------------------------------------------------
 template/cordovalib/BrowserMouseHelper.cs | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/07b0b418/template/cordovalib/BrowserMouseHelper.cs
----------------------------------------------------------------------
diff --git a/template/cordovalib/BrowserMouseHelper.cs b/template/cordovalib/BrowserMouseHelper.cs
index fc83e03..49b982b 100644
--- a/template/cordovalib/BrowserMouseHelper.cs
+++ b/template/cordovalib/BrowserMouseHelper.cs
@@ -153,6 +153,15 @@ namespace WPCordovaClassLib
                     e.Handled = true;
                 }
             }
+
+            if (ScrollDisabled)
+            {
+                if (e.FinalVelocities.LinearVelocity.X != 0.0 ||
+                   e.FinalVelocities.LinearVelocity.Y != 0.0)
+                {
+                    e.Handled = true;
+                }
+            }
         }
 
 


Mime
View raw message