fix dragging on mobile

This commit is contained in:
Ryan Di
2025-08-04 19:05:00 +10:00
parent ec246f90c5
commit ba3dde361b

View File

@@ -8446,9 +8446,11 @@ class App extends React.Component<AppProps, AppState> {
// prevent immediate dragging during lasso selection to avoid element displacement // prevent immediate dragging during lasso selection to avoid element displacement
// only allow dragging if we're not in the middle of lasso selection // only allow dragging if we're not in the middle of lasso selection
// (on mobile, allow dragging if we hit an element)
if ( if (
this.state.activeTool.type === "lasso" && this.state.activeTool.type === "lasso" &&
this.lassoTrail.hasCurrentTrail this.lassoTrail.hasCurrentTrail &&
!(this.isMobileOrTablet() && pointerDownState.hit.element)
) { ) {
return; return;
} }