Skip to content

Commit

Permalink
Fixed new parameter messages sent to host, Fixed inconsistent scrolli…
Browse files Browse the repository at this point in the history
…ng on buttons (#1441)
  • Loading branch information
VincyZed authored and baconpaul committed Dec 22, 2019
1 parent a64f935 commit 6109a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/SurgeStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ enum sub3_scenemode
n_scenemodes,
};

const char scenemode_abberations[n_scenemodes][16] = {"Single", "Split", "Dual"};
const char scenemode_abberations[n_scenemodes][16] = {"Single", "Key Split", "Dual", "Channel Split"};

enum sub3_polymode
{
Expand Down
4 changes: 2 additions & 2 deletions src/common/gui/CHSwitch2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ bool CHSwitch2::onWheel(const CPoint& where, const float& distance, const CButto
float range = getRange();
if (columns >1)
{
rate = range / (float)columns;
rate = range / (float)(columns-1); // Colums-1 = number of scroll steps
newVal += rate * distance;
}
else
{
rate = range / (float)rows;
rate = range / (float)(rows-1); // Rows-1 = Number of scroll steps
newVal += rate * -distance; // flip distance (==direction) because it makes more sense when wheeling
}
beginEdit();
Expand Down

0 comments on commit 6109a95

Please sign in to comment.