Ok, I just somehow solved it, not taking offset position with getRelPos, 
but just subtracting Event position to Node position, and while drag - 
using these offset positions to subtract from current Event position.

Best,
Zvi

P.S. coming back with another question :)

Zviad Sulaberidze wrote:
> Hi all,
>
> I face a small abnormality (or maybe it should be so), please correct 
> me, if I am wrong:
>
> Example:
>
> I have an image node, which I can drag, using example from libavg.de
>
> Node.x = Event.x-offset[0]
> Node.y = Event.y-offset[1]
>
> where offset (x and y distances between node position and mouse 
> pointer position) is taken on the moment of clicking the node.
>
> Everything works fine until I have the node angled, on the moment of 
> click.
>
> and I noticed, that offset taken on click is not the same as offset on 
> mouse move, particularly, as I start to move, offset is changing as it 
> was for zero angled node.

_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to