Seperated drag events in map interaction
This commit is contained in:
parent
deb43fae2a
commit
edab7c85f1
@ -91,14 +91,14 @@ function MapInteraction({
|
|||||||
onPinchEnd: () => {
|
onPinchEnd: () => {
|
||||||
onSelectedToolChange(previousSelectedToolRef.current);
|
onSelectedToolChange(previousSelectedToolRef.current);
|
||||||
},
|
},
|
||||||
onDrag: ({ first, last }) => {
|
onDragStart: () => {
|
||||||
if (first) {
|
interactionEmitter.emit("dragStart");
|
||||||
interactionEmitter.emit("dragStart");
|
},
|
||||||
} else if (last) {
|
onDrag: () => {
|
||||||
interactionEmitter.emit("dragEnd");
|
interactionEmitter.emit("drag");
|
||||||
} else {
|
},
|
||||||
interactionEmitter.emit("drag");
|
onDragEnd: () => {
|
||||||
}
|
interactionEmitter.emit("dragEnd");
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user