MCPcopy Index your code
hub / github.com/csev/py4e / eventInWidget

Function eventInWidget

tools/pythonauto/static/codemirrorepl/codemirror.js:2458–2462  ·  view source on GitHub ↗
(display, e)

Source from the content-addressed store, hash-verified

2456
2457 // Return true when the given mouse event happened in a widget
2458 function eventInWidget(display, e) {
2459 for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
2460 if (!n || n.ignoreEvents || n.parentNode == display.sizer && n != display.mover) return true;
2461 }
2462 }
2463
2464 // Given a mouse event, find the corresponding position. If liberal
2465 // is false, it checks whether a gutter or scrollbar was clicked,

Callers 5

registerEventHandlersFunction · 0.70
onMouseDownFunction · 0.70
onDropFunction · 0.70
onDragStartFunction · 0.70
onContextMenuFunction · 0.70

Calls 1

e_targetFunction · 0.70

Tested by

no test coverage detected