Consistent variable naming
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
This commit is contained in:
parent
4c93720a2f
commit
3d80e4aba8
@ -103,11 +103,11 @@ class PointingHandler(TrackballHandler):
|
||||
|
||||
|
||||
class ScrollHandler(TrackballHandler):
|
||||
def __init__(self, scrolling=ScrollDirection.NATURAL):
|
||||
self.scrolling = scrolling
|
||||
def __init__(self, scroll_direction=ScrollDirection.NATURAL):
|
||||
self.scroll_direction = scroll_direction
|
||||
|
||||
def handle(self, keyboard, trackball, x, y, switch, state):
|
||||
if self.scrolling == ScrollDirection.REVERSE:
|
||||
if self.scroll_direction == ScrollDirection.REVERSE:
|
||||
y = -y
|
||||
|
||||
pointing_device = trackball.pointing_device
|
||||
|
Loading…
Reference in New Issue
Block a user