Skip to content

Commit

Permalink
fix right click on graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 20, 2024
1 parent 39d4d4f commit 855df19
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions interface/src/components/Graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,20 +490,20 @@ export const Graph = (props: Props) => {
if (gesture.dragStarted) return;
const { pointerId } = e;

if (e.pointerType === "touch") {
gesture.pointers.push({
pointerId: e.pointerId,
start: {
x: e.clientX,
y: e.clientY,
},
current: {
x: e.clientX,
y: e.clientY,
},
button: e.button,
});
gesture.pointers.push({
pointerId: e.pointerId,
start: {
x: e.clientX,
y: e.clientY,
},
current: {
x: e.clientX,
y: e.clientY,
},
button: e.button,
});

if (e.pointerType === "touch") {
Solid.createRoot((dispose) => {
const start = { x: e.clientX, y: e.clientY };

Expand Down

0 comments on commit 855df19

Please sign in to comment.