地图在ios中不可以拖拽

- 发布:2024-01-29 18:58
- 更新:2024-01-29 18:58
- 阅读:213
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 64
HBuilderX类型: 正式
HBuilderX版本号: 3.8.12
第三方开发者工具版本号: 1.06.2401020
基础库版本号: 3.32
项目创建方式: HBuilderX
操作步骤:
预期结果:
@touchmove.stop 不会影响到子元素的操作
@touchmove.stop 不会影响到子元素的操作
实际结果:
@touchmove.stop影响到map组件的事件
@touchmove.stop影响到map组件的事件
bug描述:
<template>
<view>
<swiper class="swiper">
<swiper-item>123</swiper-item>
<swiper-item @touchmove.stop>
<map class="map"></map>
</swiper-item>
</swiper>
</view>
</template>
<script>
export default {
data() {
return {};
},
methods: {},
};
</script>
<style>
.swiper {
width: 100vw;
height: 100vh;
}
.map {
width: 100vw;
height: 400rpx;
}
</style>
这段代码在真机ios 8.0.45版本会照成map的缩放和拖动失效。
在安卓和微信开发者工具中是正常的,swiper-item的@touchmove.stop事件不会影响到map的操作
0 个回复