Actual scroll position remember in pattern screen
This commit is contained in:
parent
f75880d5ed
commit
651759ddc3
@ -62,13 +62,16 @@ class MatterPanelScreen(
|
||||
|
||||
val scrollBar = DiscreteScrollBarPanel(this, frame, {
|
||||
if (isPatternView) {
|
||||
scrollPatterns = integerDivisionDown(menu.patterns.size, GRID_WIDTH)
|
||||
scrollPatterns
|
||||
integerDivisionDown(menu.patterns.size, GRID_WIDTH)
|
||||
} else {
|
||||
scrollTasks = integerDivisionDown(menu.tasks.size, GRID_WIDTH)
|
||||
scrollTasks
|
||||
integerDivisionDown(menu.tasks.size, GRID_WIDTH)
|
||||
}
|
||||
}, { _, _, _ -> })
|
||||
}, { _, _, new ->
|
||||
if (isPatternView)
|
||||
scrollPatterns = new
|
||||
else
|
||||
scrollTasks = new
|
||||
})
|
||||
|
||||
scrollBar.dock = Dock.RIGHT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user