-
Notifications
You must be signed in to change notification settings - Fork 80
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
Gesture detection broken with canvas.rotate canvas.translate #53
Comments
Just for clarification of the order of processing:
*draws a rectangle around each character in the correct location - but onTapDown is not attached to the rectangle. The attached screenshot shows the touchyCanvas.drawRect() in red. onTapDown a rectangle overlaid on the text works fine if you do not rotate or translate the canvas. |
Same issue. I cannot perform any translations on the canvas, as they are not applied to the gesture detection areas. |
Any updates on this? |
Drawing an onTapDown shape before rotation or translation works ok, however; if you rotate or translate the canvas and then draw a shape - the shape does not register onTapDown. If I do not rotate or translate the canvas, the shape is drawn in the wrong location, but onTapDown now works.
I've tried attaching the canvas with touchyCanvas = TouchyCanvas(context, canvas) after the rotation events but this does not fix the onTapDown behaviour.
Is there a workaround for this?
[edit] I found the onTapDown gestures located at the side of the canvas layered on top of each other (clicking one activates them all). Ultimately, it appears the gestures are being inserted and tracked - but they are not attached to the shapes drawn using touchyCanvas that have been rotated.
The text was updated successfully, but these errors were encountered: