You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/27 03:07:31 UTC

[29/30] git commit: implements CB-1817 WP8. Add special property to control vertical scrolling behaviour

implements CB-1817 WP8. Add special property to control vertical scrolling behaviour


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

Branch: refs/heads/master
Commit: 3ffdc09dd8ad9a21f18f0d942c8c619e0c8cb6f0
Parents: b211bca
Author: Ruslan Kokorev <ru...@bsquare.com>
Authored: Thu Nov 8 15:27:42 2012 +0400
Committer: Ruslan Kokorev <ru...@bsquare.com>
Committed: Thu Nov 8 15:27:42 2012 +0400

----------------------------------------------------------------------
 .../standalone/cordovalib/BrowserMouseHelper.cs    |    5 ++++-
 .../standalone/cordovalib/CordovaView.xaml.cs      |   12 ++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/3ffdc09d/templates/standalone/cordovalib/BrowserMouseHelper.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/BrowserMouseHelper.cs b/templates/standalone/cordovalib/BrowserMouseHelper.cs
index c9de9fc..fc83e03 100644
--- a/templates/standalone/cordovalib/BrowserMouseHelper.cs
+++ b/templates/standalone/cordovalib/BrowserMouseHelper.cs
@@ -40,7 +40,10 @@ namespace WPCordovaClassLib
         /// Gets or sets whether to suppress the scrolling of
         /// the WebBrowser control;
         /// </summary>
-        private bool ScrollDisabled = true;
+        public bool ScrollDisabled {
+            get;
+            set;
+        }
 
         private bool userScalable = true;
         private double maxScale = 2.0;

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/3ffdc09d/templates/standalone/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/CordovaView.xaml.cs b/templates/standalone/cordovalib/CordovaView.xaml.cs
index 694adfd..526c9f8 100644
--- a/templates/standalone/cordovalib/CordovaView.xaml.cs
+++ b/templates/standalone/cordovalib/CordovaView.xaml.cs
@@ -118,6 +118,16 @@ namespace WPCordovaClassLib
                 }
             }
         }
+       
+        /// <summary>
+        /// Gets or sets whether to suppress bouncy scrolling of
+        /// the WebBrowser control;
+        /// </summary>
+        public bool DisableBouncyScrolling
+        {
+            get;
+            set;
+        }
 
         public CordovaView()
         {
@@ -191,6 +201,8 @@ namespace WPCordovaClassLib
 
         void GapBrowser_Loaded(object sender, RoutedEventArgs e)
         {
+            this.bmHelper.ScrollDisabled = this.DisableBouncyScrolling;
+
             if (DesignerProperties.IsInDesignTool)
             {
                 return;