Skip to content

Commit d350292

Browse files
Fix menu scroller - not trigger events on initialization
1 parent a3568b2 commit d350292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/tools/MenuScroller.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public MenuScroller(JPopupMenu menu, int scrollCount, int interval,
289289

290290
upItem = new MenuScrollItem(MenuIcon.UP, -1);
291291
downItem = new MenuScrollItem(MenuIcon.DOWN, +1);
292-
setScrollCount(scrollCount);
292+
this.scrollCount = scrollCount;
293293
setInterval(interval);
294294
setTopFixedCount(topFixedCount);
295295
setBottomFixedCount(bottomFixedCount);

0 commit comments

Comments
 (0)