We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3ff7d commit ce5e142Copy full SHA for ce5e142
libinput-gestures
@@ -464,9 +464,11 @@ class SWIPE(GESTURE):
464
if self.has_extended and aby > 0 and abx / aby > OBLIQUE_RATIO:
465
motion = ('left_' if x2 < 0 else 'right_') + motion
466
if self.thresholdmove(motion) > 0:
467
- if abx**2 + aby**2-self.moved > self.thresholdmove(motion):
468
- self.action(motion)
+ if abx**2 + aby**2-self.moved**2 > self.thresholdmove(motion):
469
self.moved+=self.thresholdmove(motion)
+ self.action(motion)
470
+ print(self.moved)
471
+
472
return True
473
474
def end(self):
0 commit comments