Hello great people!
I am attaching my working file, a painting app using html canvas.
My painting coordinates work if I use event.offsetX / event.offsetY but then I have no touch support. If I try to use hypeGestureXPosition / hypeGestureYPosition the painting only works if the layout is not scaled. I have also tried e.changedTouches.clientX / e.changedTouches.clientY but it causes the same problem as the hypeGesture route.
Basically, when painting, the paint will be aligned top-left but as the cursor/touch moves further from this point, the paint drifts away.
If anyone is able to look at my file and tell me if there's a workaround that would be greatly appreciated!
Hype template 3.0.hype.zip (1.0 MB)