Closed danceash closed 9 years ago
作者你好,又来麻烦你了,很抱歉,是这样的我使用的新版本做的杂志浏览,横向浏览模式,但是下拉图片时会出现图片下移,露出浏览器的黑色背景,但使用旧版本的话并不会出现这个问题,下拉图片是不会有反应的,请问这是什么原因导致的呢,我应该怎样去修改达到我想要的效果?
刚才去中文官网看了一下,在最后提供的所有demo都有这个问题,在手机微信上观看时,下拉都会有图片下移的效果,竖版浏览时也会出现,滑不到图片,而是滑到了浏览器背景,
需要你修改一下源代码,在iSlider.prototype.startHandler中加入evt.preventDefault(); 因为考虑到纵向滚动的支持,在新版本中移除了禁用默认事件,后续我会添加一个配置项。
iSlider.prototype.startHandler
evt.preventDefault();
赞!没问题了,谢谢作者,辛苦辛苦!
作者你好,又来麻烦你了,很抱歉,是这样的我使用的新版本做的杂志浏览,横向浏览模式,但是下拉图片时会出现图片下移,露出浏览器的黑色背景,但使用旧版本的话并不会出现这个问题,下拉图片是不会有反应的,请问这是什么原因导致的呢,我应该怎样去修改达到我想要的效果?