mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Fixed bug. Scroll when is enough space for all items
This commit is contained in:
@@ -74,6 +74,7 @@ class ListView():
|
|||||||
self.move_to(1)
|
self.move_to(1)
|
||||||
|
|
||||||
def move_to(self, direction):
|
def move_to(self, direction):
|
||||||
|
if self.scrollbar:
|
||||||
if direction == 1:
|
if direction == 1:
|
||||||
self.current_item += self.max_rows
|
self.current_item += self.max_rows
|
||||||
if self.current_item + self.max_rows > self.list_size:
|
if self.current_item + self.max_rows > self.list_size:
|
||||||
|
|||||||
Reference in New Issue
Block a user