javascript - How can I animate a series of mouse events to look like the mouse moves from point A to point B? -
to clear, i'm not talking visually making mouse moving point point b. proof of concept regarding friend's captcha system, want replicate behavior of mouse moving 1 point event listeners (trying check cursor moved target rather simulating click) fooled.
what i'm having trouble how animate cursor's path manually. consider code using jquery simulate mousemove event:
var $canvas = $('canvas'); var event = $.event('mousemove'); event.clientx = //x coord event.clienty = //y coord $canvas.trigger(event); i'm @ loss how set x , y coords in such way animate 1 coordinate another.
how can done?
Comments
Post a Comment