MCPcopy Create free account
hub / github.com/VCVRack/Rack / handleLeave

Method handleLeave

src/widget/event.cpp:328–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328bool EventState::handleLeave() {
329 heldKeys.clear();
330 // When leaving the window, don't un-hover widgets because the mouse might be dragging.
331 // setDragHoveredWidget(NULL);
332 // setHoveredWidget(NULL);
333 return true;
334}
335
336bool EventState::handleScroll(math::Vec pos, math::Vec scrollDelta) {
337 // Dispatch HoverScrollEvent

Callers 1

cursorEnterCallbackFunction · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected