MCPcopy
hub / github.com/DHTMLX/gantt / eventInWidget

Function eventInWidget

samples/common/codehighlight/codemirror.js:2289–2295  ·  view source on GitHub ↗
(display, e)

Source from the content-addressed store, hash-verified

2287
2288 // Return true when the given mouse event happened in a widget
2289 function eventInWidget(display, e) {
2290 for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
2291 if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") ||
2292 (n.parentNode == display.sizer && n != display.mover))
2293 { return true }
2294 }
2295 }
2296
2297 // POSITION MEASUREMENT
2298

Callers 7

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

Calls 1

e_targetFunction · 0.85

Tested by

no test coverage detected