This is an automated email from the ASF dual-hosted git repository.

shazron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new 634176b   CB-14039: Inputs type text don't work on iOS (#364)
634176b is described below

commit 634176b36d5029abd34cba9fefea164d25a692de
Author: Wojciech Trocki <wtro...@redhat.com>
AuthorDate: Tue May 8 08:49:29 2018 +0100

     CB-14039: Inputs type text don't work on iOS (#364)
    
    * CB-14039: Change minimumPressDuration for 3d touch
    * CB-14039: remove extensive logging
---
 .../Private/Plugins/CDVGestureHandler/CDVGestureHandler.m      | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 
a/CordovaLib/Classes/Private/Plugins/CDVGestureHandler/CDVGestureHandler.m 
b/CordovaLib/Classes/Private/Plugins/CDVGestureHandler/CDVGestureHandler.m
index 242ac55..34ed463 100644
--- a/CordovaLib/Classes/Private/Plugins/CDVGestureHandler/CDVGestureHandler.m
+++ b/CordovaLib/Classes/Private/Plugins/CDVGestureHandler/CDVGestureHandler.m
@@ -37,13 +37,13 @@
 
     self.lpgr = [[UILongPressGestureRecognizer alloc] initWithTarget:self 
action:@selector(handleLongPressGestures:)];
     self.lpgr.minimumPressDuration = 0.45f;
-    self.lpgr.allowableMovement = 100.0f;
+    self.lpgr.allowableMovement = 200.0f;
 
     // 0.45 is ok for 'regular longpress', 0.05-0.08 is required for '3D Touch 
longpress',
     // but since this will also kill onclick handlers (not ontouchend) it's 
optional.
     if ([self.commandDelegate.settings 
objectForKey:@"suppresses3dtouchgesture"] &&
         [[self.commandDelegate.settings 
objectForKey:@"suppresses3dtouchgesture"] boolValue]) {
-        self.lpgr.minimumPressDuration = 0.05f;
+        self.lpgr.minimumPressDuration = 0.15f;
     }
 
     NSArray *views = self.webView.subviews;
@@ -64,11 +64,7 @@
 
 - (void)handleLongPressGestures:(UILongPressGestureRecognizer*)sender
 {
-    if ([sender isEqual:self.lpgr]) {
-        if (sender.state == UIGestureRecognizerStateBegan) {
-            NSLog(@"Ignoring a longpress in order to suppress the magnifying 
glass.");
-        }
-    }
+    
 }
 
 @end

-- 
To stop receiving notification emails like this one, please contact
shaz...@apache.org.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to