<template>
<view class="container">
<canvas class="abs_max" canvas-id="myCanvas" id="myCanvas"></canvas>
<movable-area class="abs_max" >
<movable-view
style="height: 50px; width: 50px; background: blue;"
x="0"
y="0"
direction="all"
></movable-view>
</movable-area>
</view>
</template>
<script>
export default {
data() {
return {
};
},
async onLoad() {
},
methods: {
}
}
</script>
<style lang="scss">
.container {
width: 100%;
height: 100%;
}
.abs_max {
position: absolute; width: 100%; height: 100%; left: 0; top: 0;
}
movable-area {
background-color: rgba(0,0,0,0.4)
}
</style>

- 发布:2022-01-25 11:17
- 更新:2022-01-25 11:30
- 阅读:715
产品分类: uniapp/小程序/QQ
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.3.5
第三方开发者工具版本号: 0.3.3
基础库版本号: 1.46.5
项目创建方式: HBuilderX
示例代码:
操作步骤:
点击 movable-view 移动(那个蓝色的块)
点击 movable-view 移动(那个蓝色的块)
预期结果:
在IOS手机上能移动
在IOS手机上能移动
实际结果:
在IOS无反应
在IOS无反应
bug描述:
编译后 编译后的 movable-view 在 ios 手机无法移动,但原生小程序 写的是可以移动的。
备注:
安卓手机能正常使用。
QQ版本:8.8.50.617。
IOS 手机型号 iphone X , 版本 14.6。
已添加代码附件。
2***@qq.com (作者)
请问在哪里上传呢
2022-01-25 11:25