MCPcopy Create free account
hub / github.com/breck7/scroll / eventInWidget

Function eventInWidget

external/.scrollLibs.js:3540–3546  ·  view source on GitHub ↗
(display, e)

Source from the content-addressed store, hash-verified

3538
3539 // Return true when the given mouse event happened in a widget
3540 function eventInWidget(display, e) {
3541 for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
3542 if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") || (n.parentNode == display.sizer && n != display.mover)) {
3543 return true
3544 }
3545 }
3546 }
3547
3548 // POSITION MEASUREMENT
3549

Callers 7

onDropFunction · 0.85
onDragStartFunction · 0.85
onKeyPressFunction · 0.85
onMouseDownFunction · 0.85
onContextMenuFunction · 0.85
registerEventHandlersFunction · 0.85
.scrollLibs.jsFile · 0.85

Calls 2

e_targetFunction · 0.85
getAttributeMethod · 0.80

Tested by

no test coverage detected