Hi,
Is there any way to stop a scrolling field from automatically jumping to text that has been selected/highlighted? I am using a script to highlight an item in a list and then want to use an animation script to smoothly scroll it to the location. But what happens is that it jumps to the highlighted text, jumps back to it's original position then scrolls to the highlighted text. I know I could put a lock screen before and after the jump but sometimes it happens while the emulated wheel (in iOS) is still scrolling and would still cause a jump.
So, how do we turn off the 'scroll to highlighted' function (as I call it)?
Thanks
Pi
Scrolling field jump when selected
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Scrolling field jump when selected
Hi,
This should work:
Perhaps you could make sure that the emulated wheel isn't scrolling anymore, before you select the line? Do you have any references to that emulated wheel?
Kind regards,
Mark
This should work:
Code: Select all
lock screen
put the scroll of fld x into myScroll
set the hilitedLine of fld x to y
set the scroll of fld x to myScroll
unlock screen
-- your animation here
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode