mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[fix bug] pull refreash parent element scrollable error (#247)
当下拉刷新元素的父级有可滚动元素的时候,下拉刷新不可用
This commit is contained in:
parent
ba463adf0e
commit
e006f1402e
@ -28,6 +28,7 @@
|
||||
|
||||
<script>
|
||||
import Loading from '../loading';
|
||||
import Utils from '../utils/scroll';
|
||||
|
||||
export default {
|
||||
name: 'van-pull-refresh',
|
||||
@ -140,7 +141,7 @@ export default {
|
||||
},
|
||||
|
||||
getCeiling() {
|
||||
this.ceiling = (window.scrollY || window.pageYOffset) === 0;
|
||||
this.ceiling = Utils.getScrollTop(Utils.getScrollEventTarget(this.$el)) === 0;
|
||||
return this.ceiling;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user