Problems with scrolling on mobile

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
mattrgs
Posts: 37
Joined: Tue May 28, 2013 1:41 pm

Problems with scrolling on mobile

Post by mattrgs » Sun Nov 03, 2013 8:49 am

Hi
I followed the livecode lesson on how to create a native scroller for mobile, however when i ran it I discovered that it was really unresponsive and it was hard to get back to the top. I was trying to scrolling a group of buttons. Can anyone provide and help with this, by suggesting a fix in the code or an alternative solution please?
Thanks
Matthew
Last edited by mattrgs on Sun Nov 03, 2013 6:46 pm, edited 1 time in total.

Klaus
Posts: 11835
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Problems with scrolling on mobile

Post by Klaus » Sun Nov 03, 2013 4:00 pm

Could you please post the code in question?

mattrgs
Posts: 37
Joined: Tue May 28, 2013 1:41 pm

Re: Problems with scrolling on mobile

Post by mattrgs » Sun Nov 03, 2013 6:54 pm

I have attached 2 different sets of code. The native scroller is the one which I created from the instructions on the tutorial on the Livecode website. The "Alternative scroller" is based on a program which another user had uploaded to the forum, which can be found here: http://forums.runrev.com/viewtopic.php? ... SLF#p52717
I would prefer the second to work as it has momentum scrolling which can be customized and it would easily allow me use of the buttons. However, if you are able to provide any help with either it would be greatly appreciated.
Matthew
Attachments
Scroller Apps.zip
(7.39 KiB) Downloaded 67 times

Klaus
Posts: 11835
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Problems with scrolling on mobile

Post by Klaus » Sun Nov 03, 2013 7:46 pm

Hi Matt,

you have 2 (TWO) groups named "Category List"!
Which one is supposed to work? The inner or outer one?

And why not use a "native" mobile scroller object?
That does everything you want with very little effort
and works smoothly on the device!


Best

Klaus

mattrgs
Posts: 37
Joined: Tue May 28, 2013 1:41 pm

Re: Problems with scrolling on mobile

Post by mattrgs » Sun Nov 03, 2013 8:43 pm

But when I got the "native" scroller working, and tested it on my Samsung Galaxy Ace I found that it wouldn't always allow me to scroll back to the top, and it seemed very slow.

Klaus
Posts: 11835
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Problems with scrolling on mobile

Post by Klaus » Mon Nov 04, 2013 2:51 pm

Hi Matt,

sorry, I do not develop for Android, so I cannot test your script,
which looks OK however.

The question remains:
you have 2 (TWO) groups named "Category List"!
Which one is supposed to work? The inner or outer one?
8)


Best

Klaus

Post Reply

Return to “Talking LiveCode”