Fix :scroll-page.

This commit is contained in:
Florian Bruhin 2015-05-15 21:32:42 +02:00
parent 7e2c67a7e4
commit e3bfe73442

View File

@ -653,9 +653,9 @@ class CommandDispatcher:
if mult_y == 0:
pass
elif mult_y < 0:
self.scroll('page-up', count=-mult_y)
self.scroll('page-up', count=-int(mult_y))
elif mult_y > 0:
self.scroll('page-down', count=mult_y)
self.scroll('page-down', count=int(mult_y))
mult_y = 0
if mult_x == 0 and mult_y == 0:
return