MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / onMouseDown

Function onMouseDown

frontend/src/utility-functions/input.ts:200–203  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

198}
199
200export function onMouseDown(e: MouseEvent) {
201 // Block middle mouse button auto-scroll mode (the circular gizmo that appears and allows quick scrolling by moving the cursor above or below it)
202 if (e.button === BUTTON_MIDDLE) e.preventDefault();
203}
204
205export function onContextMenu(e: MouseEvent) {
206 if (!targetIsTextField(e.target || undefined) && e.target !== textToolInteractiveInputElement) {

Callers 1

input.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected