I’m working on a drawing type of app. It seems that when I click the mouse it draws a dot and when I release the mouse it draws a second dot… how do I prevent this second dot?
[import]uid: 1896 topic_id: 236 reply_id: 300236[/import]
I’m working on a drawing type of app. It seems that when I click the mouse it draws a dot and when I release the mouse it draws a second dot… how do I prevent this second dot?
[import]uid: 1896 topic_id: 236 reply_id: 300236[/import]
(I assume your using the “touch” event)
Check the ‘event.phase’ property.
A touch can have up to 5 phases: “began”, “moved”, “ended”, “stationary” & “canceled”*
*the docs say “cancelled” but I’m sure its a typo.
HTH,
David [import]uid: 1581 topic_id: 236 reply_id: 302[/import]
Thanks David,
So I’ll use the event phases to do the drawing action. Thanks! [import]uid: 1896 topic_id: 236 reply_id: 303[/import]