Skip to content

Commit

Permalink
- scriptnode: disable double click when outside slider range
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Oct 8, 2024
1 parent c687c7c commit c4a0ab8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
614a12b424c7244b7e830bbbfecade9e7f37133e
c687c7c2afc089f0019e59ac072036fbe2750c37
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "614a12b424c7244b7e830bbbfecade9e7f37133e"
#define PREVIOUS_HISE_COMMIT "c687c7c2afc089f0019e59ac072036fbe2750c37"
8 changes: 7 additions & 1 deletion hi_scripting/scripting/scriptnode/ui/ParameterSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,8 +1039,14 @@ void ParameterSlider::updateRange(Identifier, var)
setRange(range.rng.getRange(), range.rng.interval);
setSkewFactor(range.rng.skew);


if(pTree.hasProperty(PropertyIds::DefaultValue))
{
auto dv = pTree[PropertyIds::DefaultValue];

if(!(getRange().contains(dv) || getRange().getEnd() == dv))
setDoubleClickReturnValue(false, getRange().getStart());
}

repaint();
}

Expand Down

0 comments on commit c4a0ab8

Please sign in to comment.