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

Method onDragEnd

src/app/Switch.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void Switch::onDragEnd(const DragEndEvent& e) {
118 ParamWidget::onDragEnd(e);
119
120 if (e.button != GLFW_MOUSE_BUTTON_LEFT)
121 return;
122
123 if (momentary) {
124 internal->momentaryReleased = true;
125 }
126}
127
128
129} // namespace app

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected