MCPcopy Create free account
hub / github.com/sql-js/sql.js / eventInWidget

Function eventInWidget

GUI/codemirror/lib/codemirror.js:2488–2492  ·  view source on GitHub ↗
(display, e)

Source from the content-addressed store, hash-verified

2486
2487 // Return true when the given mouse event happened in a widget
2488 function eventInWidget(display, e) {
2489 for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
2490 if (!n || n.ignoreEvents || n.parentNode == display.sizer && n != display.mover) return true;
2491 }
2492 }
2493
2494 // Given a mouse event, find the corresponding position. If liberal
2495 // is false, it checks whether a gutter or scrollbar was clicked,

Callers 5

registerEventHandlersFunction · 0.85
onMouseDownFunction · 0.85
onDropFunction · 0.85
onDragStartFunction · 0.85
onContextMenuFunction · 0.85

Calls 1

e_targetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…