This is not a Xojo specific issue and is known to be an issue wit iDevices but when you scroll a listbox that has more than a page of content then it is really sticky and slow to move through the list of items.
I have been looking into this for a while and whilst their is a solution it appears that the solution needs to be applied directly to the framework.css file in the WebFrameworks/Listbox folder. The weird thing is (and this is also documented) that sometimes you cant apply the CSS later which is what I have tried to do by adding the change to the HTML Header or as a Pagesource but neither of the have the desired result but if you edit the framework.css directly and recompile then you will find your listbox is much smoother on iDevices and old Android devices (appears not to be needed on new versions but makes no difference if you have it in the css file). The line I have added is the last line in the style information below but you need to be aware that it has a slightly odd result if you try and scroll the list before it has finished loading the data but I think the odd is worth the gain of smooth scrolling.
Maybe Paul could look at adding this to the default framework.css so that everyone can benefit.
div.listbox > div.content
The magic line is “-webkit-overflow-scrolling: touch;” and needs to be in the “div.listbox > div.content” if you put it anywhere else it has horrid results (the list doesnt scroll etc).
Paul has nothing to do with the web framework beyond documentation
Oops, brain overload, I meant Greg, brains knew it was Gregs baby but fingers thought they would type Paul!!!
I’d also make sure you file a feature request for things like this
My JS and DOM knowledge is not great which is why I leave it to people like you to do web clever stuff
It is a bit of an odd workaround which does make the scrolling much faster and smoother but only after everything is loaded. Not sure if anyone has made a web lazy listbox that loads pages in the background as this might help although I think it may be an iDevice thing and a choice between better speed and slightly odd behavior or slower and good behavior.
It may be that I have the style applied to the wrong part of the div as a number of them exist in the listbox and I am not 100% sure which one is correct. The one I have added it to above is the one that so far gives the fastest results with least weirdness.
Below are some links to people who have used it:
[quote=109618:@Nathan Wright]My JS and DOM knowledge is not great which is why I leave it to people like you to do web clever stuff
I meant something a little different by the comment. It’s hard to explain. Not technical at all. If I come up with a good explanation, I’ll share it.