From a2a5d7682faaa22641ac1210ff464227ca23ce90 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 31 Oct 2022 13:15:32 +0100 Subject: [PATCH] swipeTracker: Drop grab-op-begin signal connection This is done just to "reset" the gesture when a grab operation begins. With grab ops being based on ClutterGrab now, the gesture will be implicitly reset when these happen. This is unnecessary now. Part-of: --- js/ui/swipeTracker.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 869f977c5..92990142b 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -232,11 +232,6 @@ const TouchSwipeGesture = GObject.registerClass({ this._allowedModes = allowedModes; this._distance = global.screen_height; - - global.display.connect('grab-op-begin', () => { - this.cancel(); - }); - this._lastPosition = 0; }