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

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 66
Joined: Tue Jun 26, 2012 7:07 pm

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

Post by williamdesmet » Thu Jun 18, 2020 6:48 pm

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
Attachments
TouchRotate.livecode.zip
(3.94 KiB) Downloaded 210 times

williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 66
Joined: Tue Jun 26, 2012 7:07 pm

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

Post by williamdesmet » Fri Jun 19, 2020 9:01 am

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 ......

Post Reply

Return to “iOS Deployment”