Skip to content

Commit e6803c2

Browse files
committed
fix(studio): keep the drag rule's comment to one line
1 parent d910370 commit e6803c2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎packages/studio/src/components/editor/domEditOverlayGestures.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export interface GestureState {
4949
kind: GestureKind;
5050
mode: "path-offset" | "box-size" | "rotation";
5151
selection: DomEditSelection;
52-
/** The pointer that pressed; only its moves drive the gesture. */
5352
pointerId: number;
5453
startX: number;
5554
startY: number;
@@ -106,8 +105,7 @@ export interface GroupGestureState {
106105
travelled?: boolean;
107106
}
108107

109-
/** A move that drives `gesture`: its own pointer, primary button still down. Chromium also sends a buttonless move at
110-
* the last known point after a layout change, which a drag must not take as travel. */
108+
/** Only the pressing pointer's moves with its button held drive a gesture, not Chromium's buttonless resends. */
111109
export function movesGesture(
112110
gesture: { pointerId: number },
113111
e: { pointerId: number; buttons: number },

0 commit comments

Comments
 (0)