Code Monkey home page Code Monkey logo

Comments (6)

xieyu33333 avatar xieyu33333 commented on July 17, 2024

可以尝试降低一下图片的分辨率和尺寸

from islider.

xieyu33333 avatar xieyu33333 commented on July 17, 2024

另外建议你去掉代码中的boundary = endTime - this.startTime > 300 ? boundary : 14; 试试,这是快速滑动的逻辑。后续我们会考虑是否将快速滑动作为一个可配置的选项。

from islider.

q13 avatar q13 commented on July 17, 2024

刚在微信浏览器端试了下(锤子t1手机),发现用最新版islider.js,偶尔出现滑动不响应的情况,和是否快速滑动没关系,替换成http://be-fe.github.io/iSlider/demo/ 上的islider.js后就没问题了,可否帮忙分析下是什么原因造成的不,移动端交互效果过于脆弱,有可能在滑动中多产生一次repaint就会造成很大影响。@xieyu33333

from islider.

xieyu33333 avatar xieyu33333 commented on July 17, 2024

这个和repaint没关系,是因为新版本加入了和原生纵向滚动的适配,touchmove的时候横向滑动距离 - 纵向滑动距离 > 10px时才会执行e.preventDefault(),但是在Android4.4以上系统内核浏览器,以及chrome浏览器上,如果没有触发e.preventDefault,那么一旦浏览器检测到滑动动作,就会触发touchcancle。而老版本没有做和纵向滚动的兼容,所以没问题,如果你不需要scroll滚动条,可以在touchmove和touchstart的地方加上e.preventDefault()

from islider.

q13 avatar q13 commented on July 17, 2024

试了下果然是这个问题,感谢指正@xieyu33333

from islider.

xieyu33333 avatar xieyu33333 commented on July 17, 2024

感谢反馈,后续我再尝试做一些调整,解决这个问题。

from islider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.