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

Method onDragMove

src/ui/Slider.cpp:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void Slider::onDragMove(const DragMoveEvent& e) {
40 if (quantity) {
41 quantity->moveScaledValue(SENSITIVITY * e.mouseDelta.x);
42 }
43}
44
45void Slider::onDragEnd(const DragEndEvent& e) {
46 APP->window->cursorUnlock();

Callers

nothing calls this directly

Calls 1

moveScaledValueMethod · 0.80

Tested by

no test coverage detected