different level edition + fix
This commit is contained in:
@@ -5,7 +5,7 @@ export function useGridEvents() {
|
||||
const emit = (suffix: EventSuffix, e: ThreeEvent<PointerEvent>) => {
|
||||
const eventKey = `grid:${suffix}` as `grid:${EventSuffix}`;
|
||||
const payload: GridEvent = {
|
||||
position: [e.point.x, e.point.z],
|
||||
position: [e.point.x, e.point.y, e.point.z],
|
||||
};
|
||||
|
||||
emitter.emit(eventKey, payload);
|
||||
@@ -30,4 +30,4 @@ export function useGridEvents() {
|
||||
onDoubleClick: (e: ThreeEvent<PointerEvent>) => emit("double-click", e),
|
||||
onContextMenu: (e: ThreeEvent<PointerEvent>) => emit("context-menu", e),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user