【类 型】:fix 移动的端 飞机跟随 拖拽屏幕不会取消跟随bug pc端没有问题

【原  因】:
【过  程】:
【影  响】:
This commit is contained in:
tk 2024-08-08 18:31:42 +08:00
parent 5ca0c40754
commit f36a63952e

View File

@ -163,6 +163,11 @@ export class FollowControl {
// 监听地图 mousedown 事件
this._map.on('mousedown', this._handleMapMouseDown.bind(this))
// 监听触摸事件
this._map.getCanvasContainer().addEventListener('touchstart', this._handleMapMouseDown.bind(this))
this._map.getCanvasContainer().addEventListener('touchmove', this._handleMapMouseDown.bind(this))
this._map.getCanvasContainer().addEventListener('touchend', this._handleMapMouseDown.bind(this))
return this._container
}