We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa77e8 commit 023b0c6Copy full SHA for 023b0c6
ats-mini/Menu.cpp
@@ -475,7 +475,7 @@ static inline int min(int x, int y) { return(x<y? x:y); }
475
static inline int wrap_range(int v, int enc, int vMin, int vMax)
476
{
477
v += enc;
478
- v = v>vMax? vMin + (v - vMax - 1) : v<vMin? vMax - (vMin - v - 1) : v;
+ v = v>vMax? vMin + (v - vMax - 1) % (vMax - vMin + 1) : v<vMin? vMax - (vMin - v - 1) % (vMax - vMin + 1) : v;
479
return(v);
480
}
481
changelog/+menu-bounds.fixed.md
@@ -0,0 +1 @@
1
+Fix out of range menu controls due to fast encoder rotation.
0 commit comments