Open crazyserver opened 3 years ago
Thanks for the issue. Does this only happen in Cordova or can you reproduce this in the browser/Capacitor too?
For additional context, I am testing this on iOS 14.5 in the browser and in WKWebView (the WebView that powers Ionic apps on Cordova and Capacitor) and I cannot reproduce this issue. What version of iOS are you testing this on?
Hi Liam! I'm crazyserver's colleague. We haven't tried using Capacitor, we've only tried it in Cordova. It doesn't seem to happen in browser or Android, only in iOS.
The video attached was made using iOS simulator "iPad Pro (12.9 inch) (5th generation)" with iOS 14.5. We can also reproduce the issue in a real device, an iPad Air (8th generation) with iOS 14.5.1. I just tried it in an iPhone X simulator with iOS 14.5 and it's also happening to me.
We also use WKWebView, the starter project already includes the Ionic WebView plugin. We haven't modified anything from the project except the id in the config.xml.
cordova plugin list
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova platform list
Installed platforms:
ios 6.2.0
I noticed the starter project uses cordova-plugin-ionic-webview 4.2.1. In the project where we detected the issue we use v5. In any case, I just updated the WebView plugin to 5.0.0 and it still happens.
Do you want me to send the project to you? The only things I did are:
ionic start myApp tabs --cordova
cd myApp
(modify the id in config.xml)
ionic cordova platform add ios
ionic cordova build ios --prod
And now:
cordova plugin remove cordova-plugin-ionic-webview
cordova plugin add cordova-plugin-ionic-webview@5.0.0
ionic cordova build ios --prod
It might be a Cordova-specific issue - let me give it a shot there and I'll let you know if I can reproduce it or not.
It looks like this is a bug in cordova-plugin-ionic-webview
. This issue does not reproduce for me in the browser or in Capacitor. In addition, I added a button with a click handler in a blank Cordova app and it does not reproduce there. Only when I added the webview plugin does the issue reproduce. I am going to move this to the appropriate repo. Thanks for filing this!
Thanks @liamdebeasi !
Bug Report
Ionic version:
[ ] 4.x [x] 5.x
Current behavior:
Pointer cancellation criterion is not accomplished on Ionic main components, while a click is released out of the button target space the click action is triggered.
Screen recording (aspect ratio lost during video conversion)
Expected behavior:
The click action should be cancelled and not triggered giving the user the possibility to cancel the tap.
Steps to reproduce:
Related code:
Other information:
Ionic info: