Page 1 of 1

Pinch-Zoom-Rotate script 'works' but .....

Posted: Thu Jun 18, 2020 6:48 pm
by williamdesmet
Hi there,

I found this wonderful PinchZoom script by Brian Milby on GitHub;
https://github.com/bwmilby/lc-misc/blob ... codescript
I am trying to add rotation so I added to this script another found script (rotating image) with mousedown and mouseup.
Now pinch-zoom-rotate somehow 'works' but things could be better and smoother.

Anyone can make this smoother? And better?
And is willing to :-)

In the attached file I used two SVG widgets.
One with only the Pinch Zoom script and one with the image rotation script added.

Greetings,

William

Re: Pinch-Zoom-Rotate script 'works' but .....

Posted: Fri Jun 19, 2020 9:01 am
by williamdesmet
Hi there,

A follow up on my own message.

I noticed today that a single touch on the SVG (with only the original script by Brian) makes the SVG 'jump'.
It makes a small move on the screen.
A single tab with two vingers at once makes the SVG 'disappear'.
It goes offscreen.

We don't want that to happen ......