Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

refactor: Delete React SyntheticEvent persist (#3700)

Sakito Mukai6b6002baae58
diff --git a/src/components/App.tsx b/src/components/App.tsx
index 600e6d7903..13386e6f32 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -2233,8 +2233,6 @@ class App extends React.Component<AppProps, AppState> {
private handleCanvasPointerDown = (
event: React.PointerEvent<HTMLCanvasElement>,
) => {
- event.persist();
-
// remove any active selection when we start to interact with canvas
// (mainly, we care about removing selection outside the component which
// would prevent our copy handling otherwise)