Is there any way to accelerate the mousemove event?

前端 未结 2 1052
一生所求
一生所求 2020-11-28 10:29

I wrote a little drawing script (canvas) for this website: http://scri.ch/

When you click on the document, every mousemove event basically executes the

2条回答
  •  时光取名叫无心
    2020-11-28 10:31

    Cool site, unfortunately there is no way to request the current position of the mouse with JavaScript, the only hooks you have are the events you're already using. If you must have more control I'd look at using flash where you can change the frame rate and request the mouse position.

    trace("Mouse X: " + _xmouse);
    trace("Mouse Y: " + _ymouse);
    

提交回复
热议问题