MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / mouseDrag

Method mouseDrag

Source/Panels/SpectrogramPanel/Multiband.cpp:417–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void Multiband::mouseDrag(const juce::MouseEvent& e)
418{
419 // moving lines by dragging mouse
420 if (e.mods.isLeftButtonDown())
421 {
422 for (int i = 0; i < lineNum; i++)
423 {
424 if (e.eventComponent == &freqDividerGroup[i]->getVerticalLine())
425 {
426 float targetXPercent = getMouseXYRelative().getX() / static_cast<float>(getWidth());
427 dragLines(targetXPercent, i);
428
429 sortLines();
430 setLineRelatedBoundsByX();
431 setSoloRelatedBounds();
432 }
433 }
434 }
435}
436
437void Multiband::mouseDown(const juce::MouseEvent& e)
438{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected