Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Laval <jeremie.laval@gmail.com>2012-06-26 19:51:38 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2012-06-26 19:51:38 +0400
commit761c9a7dab86243ae5aa52e1d3f05c575a71b98c (patch)
treeaabbae1a3cb8d6640c56acc30baccc82860a7edf
parent5e440a0b7ed75c23d604f424f9ba256eaf042b2f (diff)
[macdoc] Don't fire the swipe event from the scroll wheel handler if swipe is not enabled.
-rw-r--r--WebViewExtraordinaire.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebViewExtraordinaire.cs b/WebViewExtraordinaire.cs
index 8e9d5ef..6806fe2 100644
--- a/WebViewExtraordinaire.cs
+++ b/WebViewExtraordinaire.cs
@@ -56,6 +56,8 @@ namespace macdoc
public override void ScrollWheel (NSEvent theEvent)
{
+ if (!IsSwipeEnabled)
+ return;
if (theEvent.Phase != NSEventPhase.Began)
return;
if (theEvent.DeltaX == 0 || Math.Abs (theEvent.DeltaX) <= Math.Abs (theEvent.DeltaY) * 8)