Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手指移到滚动区域外层的固定元素,回弹会失效 #24

Closed
jaqen404 opened this issue Feb 1, 2018 · 1 comment
Closed
Labels

Comments

@jaqen404
Copy link

jaqen404 commented Feb 1, 2018

<style>
...
.ba {
            position: fixed;
            height: 100px;
            background: #000;
            color:#fff;
            z-index: 1000;
            right:0;
            width: 50%;
            top:50%;
        }
</style>
<div id="box">
    <div class="ba">bababab</div>
    <div id="scroll-box">
        <div class="pull-down-dom">Pull down to refresh</div>
        <div class="content"></div>
    </div>
</div>

wx20180201-215059

用官网上的例子,再在外层加一个固定的元素(黑块 ba)。
下拉直至手指到达黑块,在黑块内左右滑动多次,会触发simulation-scroll-y中的refresh方法,但是滚动区域不会回弹回去。断点后发现,是ismoving还是true。

scroll-ismoving-bug


以上是用demo重现,实战项目中更明显,手指滑到外层固定元素就会重现,不需要左右滑动。断点看了,原因应该是一样的,也是ismoving为true。

@HcySunYang HcySunYang added the bug label Feb 2, 2018
@HcySunYang
Copy link
Owner

已经解决了,安装 simulation-scroll-y 1.3.2 版本
https://github.com/HcySunYang/finger-mover/releases/tag/1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants