开发者

iScroll and Fixed Document Problem

开发者 https://www.devze.com 2023-03-23 21:50 出处:网络
I am using iScroll and it\'s working perfect. When it comes to form elements like input and select, it works though when one taps these elements the iphone keypad comes up and the element has to be fo

I am using iScroll and it's working perfect. When it comes to form elements like input and select, it works though when one taps these elements the iphone keypad comes up and the element has to be focused which makes sense. But this also moves the document scroller to top hiding the header which I don't want.

Would you help me write a function which will sense if there are elements focused and then preventDefault it but scrollTo the iScroll instead of window.iSc开发者_如何学Pythonroll.

Does that make sense?

0

精彩评论

暂无评论...
验证码 换一张
取 消