Consistent variable naming

Signed-off-by: Salvatore La Bua <slabua@gmail.com>
This commit is contained in:
Salvatore La Bua 2022-07-28 21:22:52 +09:00 committed by xs5871
parent 4c93720a2f
commit 3d80e4aba8

View File

@ -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