Page 1 of 1

Problems with scrolling on mobile

Posted: Sun Nov 03, 2013 8:49 am
by mattrgs
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

Re: Problems with scrolling on mobile

Posted: Sun Nov 03, 2013 4:00 pm
by Klaus
Could you please post the code in question?

Re: Problems with scrolling on mobile

Posted: Sun Nov 03, 2013 6:54 pm
by mattrgs
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

Re: Problems with scrolling on mobile

Posted: Sun Nov 03, 2013 7:46 pm
by Klaus
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

Re: Problems with scrolling on mobile

Posted: Sun Nov 03, 2013 8:43 pm
by mattrgs
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.

Re: Problems with scrolling on mobile

Posted: Mon Nov 04, 2013 2:51 pm
by Klaus
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