MCPcopy Index your code
hub / github.com/TruthHun/BookStack / eventInWidget

Function eventInWidget

static/editor.md/lib/codemirror/lib/codemirror.js:3411–3417  ·  view source on GitHub ↗
(display, e)

Source from the content-addressed store, hash-verified

3409
3410 // Return true when the given mouse event happened in a widget
3411 function eventInWidget(display, e) {
3412 for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
3413 if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") ||
3414 (n.parentNode == display.sizer && n != display.mover))
3415 return true;
3416 }
3417 }
3418
3419 // Given a mouse event, find the corresponding position. If liberal
3420 // is false, it checks whether a gutter or scrollbar was clicked,

Callers 7

codemirror.jsFile · 0.70
registerEventHandlersFunction · 0.70
onMouseDownFunction · 0.70
onDropFunction · 0.70
onDragStartFunction · 0.70
onKeyPressFunction · 0.70
onContextMenuFunction · 0.70

Calls 2

getAttributeMethod · 0.80
e_targetFunction · 0.70

Tested by

no test coverage detected