3 ms·
it would be super easy to add support for mouse events. [tutorial] They are attaching events using jQuery's bind method. Like: canvas.bind("touchstart", ...
by jbail 16y ago
it would be super easy to add support for mouse events.
[tutorial]
They are attaching events using jQuery's bind method. Like:
canvas.bind("touchstart", ...
You can add multiple events into bind. To add support for mouse events, you'd just add in the requisite mouse events, like so:
canvas.bind("touchstart mousedown" ...
canvas.bind("touchmove mousemove" ...
canvas.bind("touchend mouseup" ...
[/tutorial]