mouseDown on tablet (SOLVED)
Posted: Wed Feb 25, 2015 12:14 pm
I followed this tutorial
https://sites.google.com/a/pgcps.org/li ... g-programs
the only two changes i made was to make the name of the grc for drawing a global variable so that i could setup multiple drawing graphics. The 2nd was to set a border around the drawing area and start each handler with "...is within..." to see if they are withing the drawing area. Everything seems to work well when i use a mouse. but when i use a touch device with a stylus its like it doesn't recognise the first mousedown or something making things really messy with a stylus.
Note: i used both a microsoft surface with stylus and an acer touch screen with stylus and same result
----SOLUTION BELOW. HOPE THIS HELPS PEOPLE----------
https://sites.google.com/a/pgcps.org/li ... g-programs
the only two changes i made was to make the name of the grc for drawing a global variable so that i could setup multiple drawing graphics. The 2nd was to set a border around the drawing area and start each handler with "...is within..." to see if they are withing the drawing area. Everything seems to work well when i use a mouse. but when i use a touch device with a stylus its like it doesn't recognise the first mousedown or something making things really messy with a stylus.
Note: i used both a microsoft surface with stylus and an acer touch screen with stylus and same result
----SOLUTION BELOW. HOPE THIS HELPS PEOPLE----------