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

Method onDragStart

src/app/RackWidget.cpp:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void RackWidget::onDragStart(const DragStartEvent& e) {
213 if (e.button == GLFW_MOUSE_BUTTON_LEFT) {
214 // Deselect all modules
215 updateSelectionFromRect();
216 internal->selecting = true;
217 internal->selectionStart = internal->mousePos;
218 internal->selectionEnd = internal->mousePos;
219 }
220}
221
222void RackWidget::onDragEnd(const DragEndEvent& e) {
223 if (e.button == GLFW_MOUSE_BUTTON_LEFT) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected