简体   繁体   English

iscroll的默认行为是什么。

[英]What is the default behavior of iscroll.

I am using iscroll 4 and initiate an iscroll var test = new iScroll('iscroll-wrapper-grid'); 我正在使用iscroll 4并启动一个iscroll var test = new iScroll('iscroll-wrapper-grid'); http://cubiq.org/iscroll-4 and I am getting a strange behavior the scrollable div does been scrolled indeed but when my finger stops touching the scrollable area it gets back to its initial position. http://cubiq.org/iscroll-4 ,我得到了一个奇怪的行为,可滚动div确实确实滚动了,但是当我的手指停止触摸可滚动区域时,它又回到了初始位置。 Is this the default behavior or am I doing something wrong ? 这是默认行为还是我做错了什么?

I assume you are doing it wrong. 我认为您做错了。 Since you did not post what you had try I am not able to exactly tell what could be the cause. 由于您没有发布尝试过的内容,因此我无法确切地说出原因。 But I hope this post will help you. 但我希望这篇文章对您有所帮助。 how to use iscroll javascript in phone gap? 手机间隙中如何使用iscroll javascript?

If that post failed to meet your answer please get back to me with what you had try. 如果该帖子未能满足您的答案,请用您尝试过的方法与我联系。

#wrapper { position: absolute; top: 0px; bottom: 0px; }

我刚刚遇到了这个问题,并将其修复,请确保包装器div的位置是绝对的或固定的,并且定义了顶部和底部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM