当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - iScroll firing links onScroll

问题描述:

My app is a knockout app that generates an <ul> from an array containing 100+ items wrapped inside an iScroll container. Each <li> has a knockout click handler to load that data in a larger view.

My problem is that onScroll / touchmove (iScroll) these links are being triggered and I really don't want them to be because every time you go to scroll up/down, the element that you click to initialise the scrolling appears in the larger view.

I've set up a fiddle with knockout stripped out for simplicity as the issue lies with iScroll Bubbling and not Knockout.

I've tried preventDefault & stopPropagation but with no luck.

Fiddle: (no KO) http://jsfiddle.net/SLeKL/1/

分享给朋友:
您可能感兴趣的文章:
随机阅读: