Scroll user list by "height-1" lines, instead of 4
This commit is contained in:
parent
83e52d55f2
commit
5a6f9f92cb
1 changed files with 2 additions and 2 deletions
|
@ -111,10 +111,10 @@ class UserList(Win):
|
|||
}
|
||||
|
||||
def scroll_up(self):
|
||||
self.pos += 4
|
||||
self.pos += self.height-1
|
||||
|
||||
def scroll_down(self):
|
||||
self.pos -= 4
|
||||
self.pos -= self.height-1
|
||||
if self.pos < 0:
|
||||
self.pos = 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue