olosegres opened a new issue #982:
URL: https://github.com/apache/cordova-ios/issues/982


   # Bug Report
   
   ## Problem
   
   Problem is in vibration that appears after long press on any element
   
   ### What is expected to happen?
   Nothing should happens
   
   
   ### What does actually happen?
   Vibration, the same as when text select menu appears
   
   
   ## Information
   Suppressing via config does NOT work
   ```
   <preference name="SuppressesLongPressGesture" value="true" />
   <preference name="Suppresses3DTouchGesture" value="true" />
   ```
   
   Suppressing via CSS does NOT work, only disable context menu (cut/copy/share)
   ```
   -webkit-user-select: none;
   -webkit-touch-callout: none;
   ```
   
   cordova-plugin-ios-longpress-fix fixes it (with preference 
Suppress3DTouch=true), but it produces bugs with not working onClick handlers.
   
   ### Command or Code
   Just run any cordova app on a real device with one div in body and long 
press in any point, you will feel vibration.
   ```
   <div style="width: 100%, height: 100%, -webkit-user-select: none; 
-webkit-touch-callout: none;">Example text</div>
   ```
   
   Or use this boilerplate (do not forget to set correct signing in xcode):
   ```
   git clone https://github.com/olosegres/react-cordova-boilerplate
   cd react-cordova-boilerplate
   npm i
   cordova platform add ios
   cordova run ios
   ```
   
   ### Environment, Platform, Device
   Tested on iPhone 6s with iOS 13.6.1 (don't know how to reproduce vibration 
in simulator)
   
   
   ### Version information
   Tested with many webview plugins, appears everywhere (I use 
cordova-plugin-ionic-webview)
   cordova-ios 6.1.1 (same in 5.1.0)
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ x] I searched for existing GitHub issues
   - [ x] I updated all Cordova tooling to most recent version
   - [ x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to