-
Notifications
You must be signed in to change notification settings - Fork 3.7k
movable-view 长按后,ios会偶现无法触发change事件 #5383
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
Comments
就是上面我提供的代码,最好在ios真机上运行(模拟器出现机率比较小),然后: |
能复现这个问题,但是这个组件完全是微信提供的,uniapp上也没有做过更改,一般来说这个事件,也不应该受到影响,你可以尝试写一个微信原生项目看一下是否也有这个问题。 |
好的,感谢!我有空了试一下。 |
发行方式
小程序
具体平台
ios真机基本都有这个问题,如ios18.3.1;微信开发者工具选择ios设备也能复现(但机率较小)
开发环境
Windows
项目创建方式
HBuilderX
依赖版本
HBuilder X 4.45
uni.getSystemInfo() 返回的部分信息:
问题描述
原本是想基于 movable-view 实现长按拖拽排序,但发现ios偶尔在拖拽时不会触发change事件;ps:movable-view拖动效果确实丝滑
重现步骤
正常逻辑来说:会依次触发
touchstart、longpress、touchmove、change和touchend
对应的事件,但在ios偶尔只会触发touchmove
却不触发change
(其他事件会触发)因为要基于 change 事件的返回值
event.detail = {x: x, y: y, source: source}
去计算元素的位置,不触发change的情况下,拖拽就无效了期望行为
No response
实际行为
No response
截图或录屏
No response
The text was updated successfully, but these errors were encountered: