Skip to content

iOS double tap event returns wrong x and y #2318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZmanElete opened this issue Jan 25, 2021 · 0 comments
Open

iOS double tap event returns wrong x and y #2318

ZmanElete opened this issue Jan 25, 2021 · 0 comments

Comments

@ZmanElete
Copy link

ZmanElete commented Jan 25, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant