uView icon indicating copy to clipboard operation
uView copied to clipboard

u-dorpdown吸顶时引起的 gnored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted 错误

Open alive-z opened this issue 4 years ago • 2 comments

  • Bug: 当u-dorpdown你组件吸顶时,移动端滑动会出现Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted错误,

  • 解决方案: 在u-dorpdown 中的open和close事件中重新计算 contentHeight 值,在关闭时,直接设置为0即可;

  • 修改后的代码:

image

alive-z avatar Oct 21 '20 13:10 alive-z

在u-dropdown.vue删掉@touchmove.stop.prevent,下拉菜单组件的遮罩层影响到了

xzx-xzx avatar Jan 22 '21 03:01 xzx-xzx

将 uni-scroll-view-content 的样式进行如下覆盖 .xxx>>>.uni-scroll-view-content {height: auto;}

JerryYu2014 avatar Feb 20 '22 11:02 JerryYu2014