Hi All, 

Hope every one is doing great . I am facing a small issue while try to achieve 
drag and rotate around center on mouse movement.

I have achieved how to drag rotate around center of an object (ui component) on 
mouse movement but it rotates around top left corner which is the default 
behaviour. I used matrix transformation concept also by looking at many 
solutions out there on google but my problem is that i want to rotate the 
component aroun center with a speed that is synchronized with mouse movement 
and also the component would be rotating around center either clockwise or 
anti-clockwise movement of the mouse pointer...

Using matrix transformation the issue is that it rotates on a constant speed 
and also I have no way to rotate it either clockwise or anti-clockwise based 
upon mouse movement , The only i could achieve it using the matrix concept is 
by placing a check for event.ctrlKey and then only i could rotate it around 
center either clockwise or anti-clockwise

I know I am doing something silly in what I am trying to achieve but please any 
help or suggestion in right direction  would be greatly appreciated oh and 
sorry for my bad english.

Thanks all in advance.

Regards
Anas.

Reply via email to