Reduce Jerkiness of Dragging objects in iOS? - Solved

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Reduce Jerkiness of Dragging objects in iOS? - Solved

Post by DR White » Thu Jun 06, 2019 11:33 am

How can I reduce the jerkiness of dragging objects?
Attachments
DragMe_Home.livecode.zip
(1.52 KiB) Downloaded 136 times
Last edited by DR White on Fri Jun 07, 2019 2:56 am, edited 1 time in total.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Reduce Jerkiness of Dragging objects in iOS?

Post by bogs » Thu Jun 06, 2019 12:44 pm

I dunno, DR White, it works smoothly on my desktop and I don't have mobile devices to test with.

You could try adding lock / unlock screen to the snippet and see if that alleviates some of the jerkiness, or lockScreen,

Code: Select all

on mouseDown pButtonNumber
   lock screen
   grab me
   unlock screen
end mouseDown
Image

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Reduce Jerkiness of Dragging objects in iOS?

Post by DR White » Thu Jun 06, 2019 7:29 pm

bogs,

Using Lock/unlock screen doesn't help in mobile.

I am sure that there must be some way to make it move smooth in mobile.

Thanks,

David

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Reduce Jerkiness of Dragging objects in iOS?

Post by bogs » Thu Jun 06, 2019 8:13 pm

Huh, the dictionary says it works on mobile.
Dictionary wrote: lock screen
type
command
syntax

lock screen [for visual effect [in rect[angle] rectString]]

summary
Sets the lockScreen property to true, temporarily preventing the screen from being updated.
introduced
1.0
OS
mac, windows, linux, ios, android
platforms
desktop, server, mobile
Hmmm. Well, if it doesn't, hopefully someone that does mobile will show up shortly.
Image

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Reduce Jerkiness of Dragging objects in iOS?

Post by DR White » Thu Jun 06, 2019 10:08 pm

Bogs,

It does work on mobile. I have used many times and does a great job preventing screen update, until all the screen changes have been made. But, it does not help the jerkiness when using "grab me" in mobile.

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Reduce Jerkiness of Dragging objects in iOS? - Solved

Post by DR White » Fri Jun 07, 2019 2:59 am

I am SORRY!

The Jerkiness is only seen when I test the app on the Simulator. When I actually downloaded it to my phone it works fine.

Again sorry to bother you,

David

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”