From 4ea079eb85a65ab06baac6b4a69be69cce98fdb0 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Mon, 9 Oct 2023 12:26:49 +0200 Subject: [PATCH] fix: regression from #6739 preventing redirect link in view mode (#7120) Co-authored-by: dwelle --- src/components/App.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 737d2bed..d38fa630 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -4479,12 +4479,15 @@ class App extends React.Component { return; } + this.lastPointerDownEvent = event; + + // we must exit before we set `cursorButton` state and `savePointer` + // else it will send pointer state & laser pointer events in collab when + // panning if (this.handleCanvasPanUsingWheelOrSpaceDrag(event)) { return; } - this.lastPointerDownEvent = event; - this.setState({ lastPointerDownWith: event.pointerType, cursorButton: "down",