mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-24 03:27:29 +00:00
Fix abnormal display issue when double clicking
This commit is contained in:
parent
17b4b17a46
commit
ad652c49ff
@ -144,7 +144,9 @@ export default class Base {
|
|||||||
|
|
||||||
onDoubleClick() {
|
onDoubleClick() {
|
||||||
this.eventHandler.setInputAction((evt: any) => {
|
this.eventHandler.setInputAction((evt: any) => {
|
||||||
this.finishDrawing();
|
if (this.state === 'drawing') {
|
||||||
|
this.finishDrawing();
|
||||||
|
}
|
||||||
}, this.cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
}, this.cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user