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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -