MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / OnMouseReleased

Method OnMouseReleased

src/visual/TuningCanvas.cpp:379–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void TuningCanvas::OnMouseReleased(wxMouseEvent& event) {
380 InteractiveCanvas::OnMouseReleased(event);
381
382 int hExponent = hoverIndex - 1;
383
384 if (hoverState != TUNING_HOVER_NONE && !dragging && (downState == hoverState) && (downIndex == hoverIndex)) {
385 StepTuner(hoverState, top ? TUNING_DIRECTION_UP : TUNING_DIRECTION_DOWN, hExponent, shiftDown, false);
386 }
387
388 mouseTracker.setVertDragLock(false);
389
390 dragging = false;
391 SetCursor(wxCURSOR_ARROW);
392}
393
394void TuningCanvas::OnMouseRightDown(wxMouseEvent& event) {
395 InteractiveCanvas::OnMouseRightDown(event);

Callers

nothing calls this directly

Calls 1

setVertDragLockMethod · 0.80

Tested by

no test coverage detected