Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Sep 13, 2023
1 parent 76c9246 commit 5587c8c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions taxonium_component/src/Deck.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ function Deck({

const onClickOrMouseMove = useCallback(
(event) => {


if (event._reactName === "onClick") {

setMouseDownIsMinimap(false);
}
if (event.buttons === 0 && event._reactName === "onPointerMove") {
return false;
}
Expand Down Expand Up @@ -109,9 +115,7 @@ function Deck({
y: event.nativeEvent.offsetY,
radius: 10,
});
if (event._reactName === "onPointerUp") {
setMouseDownIsMinimap(false);
}


if (event._reactName === "onPointerDown") {
if (pickInfo && pickInfo.viewport.id === "minimap") {
Expand Down

0 comments on commit 5587c8c

Please sign in to comment.