Scrolling page with drag - simple solution required
Hi,
We are looking at developing some applications for a touch-screen mobile device. One of the problems we face is scrolling - the scrollbars render quite small and it gets a little tricky. What I would like to do is implement a scrolling function where the user can scroll using the touchscreen, in the same way as you can with your mobile phone/tablet. I'm not looking at any of the fancy stuff that comes with those such as elasticity and bounce, just somethingvery basic and robust.
I have seen an example of a page which overwrote the document.onmousedown/move/up functions to do this but it was a little fiddly in that it sometimes interfered with pressing links on the page, focusing items etc.
Does anyone have any suggestions/ideas? Needs to be as lightweight as possible with it being on a mobile device and ideally in pure javascript rather than jquery (again, just for better mobile support).