android - How to recognize clockwise and anti clock wise rotating? -


i using hmmer.js. trying rotate image on android multi touch. want increase or decrease rotation angle of image. in case need have events clock wise , anticlock wise.

can tell me, how recognize element being rotated in clock wise or anti clock wise?

the event object given hammer contains rotation property angle of rotation in degrees. ranges -180 180, , negative when rotation anti-clockwise , positive when it's clockwise.

you can test in plunker: https://plnkr.co/edit/uvcyoytxc12lll74oyoi?p=preview


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -