javascript - Is there a more accurate mousemove? -


i asking myself there "more accurate mousemove" in javascript. normal event fired when mouse moves, it's possible "jumps" on pixels, question if there's way detect every pixels crossed.

an application use paint want draw (e.g. stroke)

the mouse not cross every pixel, though. touchscreens.

you can see in microsoft paint. if drag mouse , forth while drawing, you'll see guessing , drawing lines in between points os sending it.

if need handle every pixel, take last pixel saw, , current pixel, , have code find of pixels fall on line between 2 points.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -