JogDial.js icon indicating copy to clipboard operation
JogDial.js copied to clipboard

How can i reset the rotation value to 0 on mouse click?

Open engineer2u4u opened this issue 4 years ago • 1 comments

How can i reset the rotation value to 0 on mouse click?

engineer2u4u avatar Apr 14 '20 16:04 engineer2u4u

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))

ohsiwon avatar May 09 '20 16:05 ohsiwon