File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,6 @@ class GESTURE:
411
411
'Get threshold for update command'
412
412
thresh = self .thresholds .get ((motion , self .fingers )) or \
413
413
self .thresholds .get (motion )
414
- print (thresh )
415
414
if thresh == None :
416
415
thresh = 0
417
416
return int (thresh )
@@ -465,9 +464,10 @@ class SWIPE(GESTURE):
465
464
if self .has_extended and aby > 0 and abx / aby > OBLIQUE_RATIO :
466
465
motion = ('left_' if x2 < 0 else 'right_' ) + motion
467
466
if self .thresholdmove (motion ) > 0 :
468
- if abx ** 2 + aby ** 2 - self .moved > self .thresholdmove (motion ):
467
+ if abx ** 2 + aby ** 2 - self .moved ** 2 > self .thresholdmove (motion ):
468
+ self .moved += self .thresholdmove (motion )
469
469
self .action (motion )
470
- self . moved += abx ** 2 + aby ** 2
470
+
471
471
return True
472
472
473
473
def end (self ):
@@ -554,7 +554,7 @@ def conf_gesture(lineargs):
554
554
fingers = None
555
555
thresh , * gcommand = command .split (maxsplit = 1 )
556
556
if thresh .isnumeric ():
557
- command = gcommand [0 ] if fcommand else ''
557
+ command = gcommand [0 ] if gcommand else ''
558
558
else :
559
559
thresh = 0
560
560
# Add the configured gesture
You can’t perform that action at this time.
0 commit comments