JogDial.js
JogDial.js copied to clipboard
How can i reset the rotation value to 0 on mouse click?
How can i reset the rotation value to 0 on mouse click?
You can trigger angle(number) to change the rotation value from the outside.
// Example const dial = JogDial(el, {debug: true}); const button = document.querySelector(yourButtonSelector) button. addEventListener('click', () => dial.angle(0))