Skip to content

Commit

Permalink
decrease screen drag sensitivity in view mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubin committed Jan 1, 2024
1 parent 0c42129 commit 486c678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/components/editor/states/StateInteract.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class IdleState extends SubState {
this.mobilePinchToZoom(event);
return;
}
if (this.initialClickPoint && Math.abs(mx - this.initialClickPoint.x) + Math.abs(my - this.initialClickPoint.y) < 3) {
if (this.initialClickPoint && Math.abs(mx - this.initialClickPoint.x) + Math.abs(my - this.initialClickPoint.y) > 3) {
this.mouseMovedAfterClick = true;
event.preventDefault();
if (event.buttons === 0) {
Expand Down

0 comments on commit 486c678

Please sign in to comment.