-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[gestures] Pinch In and Pinch Out are messy #1963
Comments
I have the same issue on my IPhone XR |
Unfortunately, I don't have a proper touch screen for testing (my Surface Pro died some months ago) and using HTML5 through an Android phone is not the best environment... In any case, current gestures processing system should be reviewed... |
Works on my Razr but it's little fishy and janky, I guess that's because my screen but ot sure ah. But hard to get inputs I guess that's the prob |
Possibly related to this point: https://github.com/raysan5/raylib/blob/master/src/rcore.c#L5501 I think the Despite not being the proper solution, I think removing the |
OK just to confirm the line to change is now https://github.com/raysan5/raylib/blob/master/src/rcore.c#L5510 and I've changed it to Testing on iPad... Pinch-out is still almost always detected as pinch in. (Also there is something to with which finger goes down first as to whether it detects anything.) Also swipes are always detected as swipe-left. |
Upload.from.GitHub.for.iOS.MOVHere is the same thing on a windows 11 laptop |
Also weird: The first time you do a pinch-in, you get a pinch-in and a pinch-out. |
You are getting something different from me, I rarely get touch. I tried it on my surface and works like a charm there but still no luck on Razr. |
@tusharsingh09 It probably works ok in Surface because that was the device I used for developing it and testing. Unfortunately my Surface Pro 3 just died some months ago. |
Oh yeah Ray no issues on Surface but on Razr |
I don't have the required hardware/environment to solve this issue. Feel free to send me the required hardware. Closing for now. |
After some debugging I believe that there are two issues causing the malfunction of the pinch gestures:
I believe I managed to fix it by adding two Minimal reproduction code (modified the Input Gestures example examples/core/core_input_gestures.c) to test the issue more easily in a smartphone web browser:
Screenshot of the test on Chrome (95.0.4638.74) on Android, after the proposed changes: |
@ubkp thank you very much for taking care of this issue! |
@ubkp Thank you a lot! |
Issue description
Input Gestures Example failed to recognise Pinch in and Pinch out, in some cases one appear instead of the expected other results, in other cases both are logged even when only one action was performed
Environment
Happened on HTML5, Safari, iPhone X, iOS 14.4
OpenGL ES 2.0
The text was updated successfully, but these errors were encountered: