2 ms·
It can! For a capture that lasts until the mouse button is released: https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture https://developer.mozi
by Stratoscope 10y ago
It can! For a capture that lasts until the mouse button is released:
https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture https://developer.mozilla.org/en-US/docs/Web/API/Element/set...
Or for a capture that works even if the mouse button is not pressed, and remains until the Esc key is pressed:
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Loc...
The first option would be the one to use for right button dragging.
- moron4hire 10y agoThe first one is Firefox only, the second one is everything-except-Safari.