movableArea产生的一些问题?

发布于 7 年前作者 xyan14518 次浏览最后编辑 7 年前来自 issues

movableArea  浮框组件。

经常使用场景:悬浮按钮。 

相对于一些需求 悬浮移动完  按钮自动靠右侧停靠。 但是 movableArea 只提供了  bindchange属性 滑动中,没有提供   开始滑动 和  结束滑动的属性。    而  bindtouchstart bindtouchend 属性 调用的时候  获取到的 x,y值不准,差距异常的大。 甚至 在模拟器上  滑动鼠标滑动出界后  无法回调  bindtouchend 属性。  经常在  x = 0 的时候出现问题。

1 回复
litao
litao1 楼5 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html