We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e81ab6 commit 3bc9308Copy full SHA for 3bc9308
app/src/processing/app/tools/MenuScroller.java
@@ -441,6 +441,10 @@ private void refreshMenu() {
441
firstIndex = Math.max(topFixedCount, firstIndex);
442
firstIndex = Math.min(menuItems.length - bottomFixedCount - scrollCount, firstIndex);
443
444
+ if (firstIndex < 0) {
445
+ return;
446
+ }
447
+
448
upItem.setEnabled(firstIndex > topFixedCount);
449
downItem.setEnabled(firstIndex + scrollCount < menuItems.length - bottomFixedCount);
450
0 commit comments