I’d like a short smallest possible javascript routine that when a mousedown occurs on a button it first responds just like a mouseclick and then if the user keeps the button pressed it responds as if the user was continously sending mouseclicks and after a while with the button held down acts as if the user was accelerating their mouseclicks…basically think of it like a keypress repeat with acceleration in time.
i.e. user holds down mouse button (x=call function) – x___x___x___x__x__x_x_x_x_xxxxxxx
I’d like a short smallest possible javascript routine that when a mousedown occurs on
Share
1 Answer