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
Post a Comment