[ 
https://issues.apache.org/jira/browse/CB-14039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16456489#comment-16456489
 ] 

ASF GitHub Bot commented on CB-14039:
-------------------------------------

wtrocki opened a new pull request #364:  CB-14039: Inputs type text don't work 
on iOS
URL: https://github.com/apache/cordova-ios/pull/364
 
 
   ## Expected Behavior
   
   The inputs are clickable and the user can write.
   
   ## Actual Behavior
   
   The inputs are not clickable and the user cannot write
   Note: Sometimes the application opens the keyboard, but it's really 
difficult to get.
   
   ## Steps to Reproduce
   
   Create a new project: phonegap create myApp
   Add some inputs type text in the HTML
   Run the application: phonegap run ios
   
   ## Result 
   
   Issue was related with `<preference name="Suppresses3DTouchGesture" 
value="true" />`
   This option was using extremely low value of minimumPressDuration that was 
suppressing onClick events etc. After experimenting on Iphone SE and Iphone 7 
and simulators I found that values 0.15f do not interfere with onClick 
handlers. 
   Additionally supplying this option were flooding application log with not 
useful messages.
   
   ## Visualization of the issue and fix
   
   http://www.giphy.com/gifs/24FWgpvK4vqhN7oZnq
   
   ## Docs issue
   
   Additionally I found that documentation do not reflect that state of the 
code.
   Documentation states: 
   
   " If this setting is true, SuppressesLongPressGesture will effectively be 
true as well."
   
   Where in fact preferences are not connected and setting 
SuppressesLongPressGesture to false will mean that Suppresses3DTouchGesture 
value will be ignored.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Inputs type text don't work on iOS
> ----------------------------------
>
>                 Key: CB-14039
>                 URL: https://issues.apache.org/jira/browse/CB-14039
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Jason Glez
>            Priority: Major
>
> h3. PhoneGap CLI, node & npm versions
> PhoneGap CLI Version: 8.0.0
> Xcode Version: 9.3
> Node Version: 8.11.1
> NPM Version: 5.8.0
> Git Version: 2.16.3
> ios-sim Version: 6.1.2
> Using the following preferences in config.xml all the inputs type "text" stop 
> working and cannot be clickable.
> <preference name="SuppressesLongPressGesture" value="true" /> <preference 
> name="Suppresses3DTouchGesture" value="true" />
> Devices tested:
>  * iPhone X 11.3 (Emulator)
>  * iPhone 6 10.2.1 (Physical device)
> h3. Expected Behaviour
>  * The inputs are clickable and the user can write.
> h3. Actual Behaviour
>  * The inputs are not clickable and the user cannot write
>  * Note: Sometimes the application opens the keyboard, but it's really 
> difficult to get.
> h3. Steps to Reproduce
>  * Create a new project: phonegap create myApp
>  * Add some inputs type text in the HTML
>  * Run the application: phonegap run ios



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to