Title: [202868] trunk/Source/WebKit2
Revision
202868
Author
[email protected]
Date
2016-07-06 12:04:50 -0700 (Wed, 06 Jul 2016)

Log Message

Limit touch distance for two finger tap.
https://bugs.webkit.org/show_bug.cgi?id=159476
rdar://problem/26439052

Reviewed by Beth Dakin.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView setupInteraction]):
* Platform/spi/ios/UIKitSPI.h

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (202867 => 202868)


--- trunk/Source/WebKit2/ChangeLog	2016-07-06 18:46:51 UTC (rev 202867)
+++ trunk/Source/WebKit2/ChangeLog	2016-07-06 19:04:50 UTC (rev 202868)
@@ -1,3 +1,15 @@
+2016-07-06  Enrica Casucci  <[email protected]>
+
+        Limit touch distance for two finger tap.
+        https://bugs.webkit.org/show_bug.cgi?id=159476
+        rdar://problem/26439052
+
+        Reviewed by Beth Dakin.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView setupInteraction]):
+        * Platform/spi/ios/UIKitSPI.h
+
 2016-07-06  Antoine Quint  <[email protected]>
 
         <img> with a wide gamut PDF does not display using a wide gamut color space

Modified: trunk/Source/WebKit2/Platform/spi/ios/UIKitSPI.h (202867 => 202868)


--- trunk/Source/WebKit2/Platform/spi/ios/UIKitSPI.h	2016-07-06 18:46:51 UTC (rev 202867)
+++ trunk/Source/WebKit2/Platform/spi/ios/UIKitSPI.h	2016-07-06 19:04:50 UTC (rev 202868)
@@ -315,6 +315,7 @@
 @end
 
 @interface UITapGestureRecognizer ()
+@property (nonatomic, getter=_allowableSeparation, setter=_setAllowableSeparation:) CGFloat allowableSeparation; 
 @property (nonatomic, readonly) CGPoint location;
 @property (nonatomic) CGFloat allowableMovement;
 @property (nonatomic, readonly) CGPoint centroid;

Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (202867 => 202868)


--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2016-07-06 18:46:51 UTC (rev 202867)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2016-07-06 19:04:50 UTC (rev 202868)
@@ -539,6 +539,7 @@
 
     _twoFingerSingleTapGestureRecognizer = adoptNS([[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(_twoFingerSingleTapGestureRecognized:)]);
     [_twoFingerSingleTapGestureRecognizer setAllowableMovement:60];
+    [_twoFingerSingleTapGestureRecognizer _setAllowableSeparation:150];
     [_twoFingerSingleTapGestureRecognizer setNumberOfTapsRequired:1];
     [_twoFingerSingleTapGestureRecognizer setNumberOfTouchesRequired:2];
     [_twoFingerSingleTapGestureRecognizer setDelaysTouchesEnded:NO];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to