Skip to content

Commit ed23d70

Browse files
committed
update docs
1 parent 35ab11f commit ed23d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export function addDelegatedEventListener<T extends HTMLElement, E extends Event
370370
}, options);
371371
}
372372

373-
// Check if a click is done without any special mouse or key inputs that would trigger special browser behavior.
373+
/** Returns whether a click event is a left-click without any modifiers held */
374374
export function isPlainClick(e: MouseEvent) {
375375
return e.button === 0 && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey;
376376
}

0 commit comments

Comments
 (0)