zuopf769

Results 4 comments of zuopf769

如果将为ul使用overflow:hidden的方式,ul生成BFC不应该再发生重叠现象可是我在chrome、firefox、ie上的测试结果都有发生重叠现象。这个问题,我没找到答案,还请道友们给解答一下

如何判断滑动事件的触发 target 祖先元素是否有可滑动元素,无则直接阻止冒泡。 ``` export default { // get nearest scroll element getScrollEventTarget (element, rootParent = window) { let node = element; if (node && node.tagName === 'HTML') { return...

``` const _ = require('src/util') export default function (option) { var scrollSelector = option.scroll || '.scroller' var pos = { x: 0, y: 0 } function stopEvent (e) { e.preventDefault()...

判断滑动方向 ``` const MIN_DISTANCE = 10; function getDirection (x, y) { if (x > y && x > MIN_DISTANCE) { return 'horizontal'; } if (y > x && y >...