gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 5a3782b6af77a2bdd25073aa79ce31cb7f3bce76
parent 3cc945c53cdd4f7071d44ef9996611e7b380539e
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu,  6 Mar 2025 23:04:22 +0100

allow graph editing only with left click

Diffstat:
Msource/xtJucePlugin/weGraph.cpp | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/source/xtJucePlugin/weGraph.cpp b/source/xtJucePlugin/weGraph.cpp @@ -87,6 +87,10 @@ namespace xtJucePlugin void Graph::mouseDown(const juce::MouseEvent& _e) { Component::mouseDown(_e); + + if (_e.mods.isPopupMenu()) + return; + setLastMouseEvent(_e); const auto i = mouseToIndex(_e); if(isValidIndex(i)) @@ -96,6 +100,10 @@ namespace xtJucePlugin void Graph::mouseMove(const juce::MouseEvent& _e) { Component::mouseMove(_e); + + if (_e.mods.isPopupMenu()) + return; + updateHoveredIndex(_e); } @@ -115,6 +123,9 @@ namespace xtJucePlugin { Component::mouseDrag(_e); + if (_e.mods.isPopupMenu()) + return; + if(!_e.mods.isShiftDown()) { updateHoveredIndex(_e);