There's a small bug in the JS source, that sends out the wrong mouse coordinates when moving over the canvas when the canvas isn't positioned in the left upper corner.
You use the evt.page.x and evt.page.y properties to determine the mouse position, but this returnes the mouse position within the screen, not the canvas ..
To get the correct relative position I changed these to evt.event.layerX and evt.event.layerY and now the positioning is correct ...
Hi Fritz ...
There's a small bug in the JS source, that sends out the wrong mouse coordinates when moving over the canvas when the canvas isn't positioned in the left upper corner.
You use the evt.page.x and evt.page.y properties to determine the mouse position, but this returnes the mouse position within the screen, not the canvas .. To get the correct relative position I changed these to evt.event.layerX and evt.event.layerY and now the positioning is correct ...