求解小米手机MIUI 9.6 movable-view 事件不生效
- 当前 Bug 的表现(可附上截图)
目前测了3款手机,苹果、华为表现均正常调用onScale、onChange事件,只有小米手机不行
苹果、华为:
小米手机 系统为MIUI9.6
-
预期表现
-
复现路径
-
提供一个最简复现 Demo
<movable-area style=“height: 100px; width: 100px;margin-left:8%”>
<movable-view style=“width: 300px;height:185px” direction=“all” bindchange=“onChange” bindscale=“onScale” scale scale-min=“1” scale-max=“4” scale-value=“1”>
<image style=“width: 300px;height:185px” mode=“aspectFit” src=“{{imgUrl}}”></image>
</movable-view>
</movable-area>
data: {
imgUrl: null,
title: null,
x: 0,
y: 0
},
tap: function(e) {
this.setData({
x: 30,
y: 30
});
},
onChange: function(e) {
console.log(e.detail)
},
onScale: function(e) {
console.log(e.detail)
},
