This jQuery plugin doesn’t work with the y-axis.
http://jsfiddle.net/weissraum/tsyzZ/
How can this be solved?
You cannot delete doctype declaration in jsfiddle, but I did successfully locally on both x & y axis.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to setup your CSS so that the
#containerelement is 100% of the size of the view-port, not 100% of the size of the document.Add this to the
#containerCSS rule:That’s all, the issue was that the
#containerelement didn’t have any vertical scrollbars since it was full document height.Here is a demo: http://jsfiddle.net/tsyzZ/3/
Also, if you change
overflow:autotooverflow:hiddenfor the#containerelement the scrollbars will disappear but the user can still use thescrollviewplugin to pan the element.