mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-24 03:27:29 +00:00
fix
This commit is contained in:
parent
15a9ae1e95
commit
500259c7fb
@ -308,7 +308,7 @@ export default class Base {
|
||||
// Listen for left mouse button release events
|
||||
this.controlPointsEventHandler.setInputAction(() => {
|
||||
// Trigger 'drawUpdate' when there is a change in coordinates before and after dragging.
|
||||
if (!this.cesium.Cartesian3.equals(dragStartPosition, draggedIcon.position._value)) {
|
||||
if (draggedIcon && !this.cesium.Cartesian3.equals(dragStartPosition, draggedIcon.position._value)) {
|
||||
this.eventDispatcher.dispatchEvent('drawUpdate', draggedIcon.position._value);
|
||||
}
|
||||
isDragging = false;
|
||||
|
Loading…
Reference in New Issue
Block a user