nativescript-angular
nativescript-angular copied to clipboard
iOS double tap event returns wrong x and y
IOS
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
"dependencies": {
"@angular/animations": "~11.0.0",
"@angular/common": "~11.0.0",
"@angular/compiler": "~11.0.0",
"@angular/core": "~11.0.0",
"@angular/forms": "~11.0.0",
"@angular/platform-browser": "~11.0.0",
"@angular/platform-browser-dynamic": "~11.0.0",
"@angular/router": "~11.0.0",
"@nativescript/angular": "~11.0.0",
"@nativescript/core": "~7.1.0",
"@nativescript/theme": "~3.0.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.6.0",
"zone.js": "~0.11.1"
},
"devDependencies": {
"@angular/compiler-cli": "~11.0.0",
"@nativescript/android": "7.0.1",
"@nativescript/types": "~7.0.0",
"@nativescript/webpack": "~4.0.0",
"@ngtools/webpack": "~11.0.0",
"typescript": "~4.0.0"
},
Double tap event on iOS returns wrong coords In iOS the double tap event returns what seems to be roughly half the value that is expect to be returned from the event.getX() and event.getY() functions.
To Reproduce Create a new angular app. Add a double tap event. Make sure to pass the event into the function. Call getX() or getY() on the event. run on iOS and read the values. They will be incorrect.
Expected behavior The value should be roughly double what is returned
Sample project https://github.com/ZmanElete/DoubleTapEventBug.git
In the app, if it it run, you will see a red square and a blue square. The blue square is the expected result(roughly) the red square is the raw result. Notice, android runs fine and this description will be incorrect.