From 4920cf1eb69ffffb1b64b1ceee3f7b7bf2675d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sun, 10 Apr 2022 00:44:01 +0200 Subject: [PATCH] appDisplay: Remove pan gesture from FolderView The FolderView is a subclass of BaseAppView, which already has a full-blown SwipeTracker attached to it. So no need to add another PanGesture on top, the SwipeTracker will handle it for us. Part-of: --- js/ui/appDisplay.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 2535f2ee8..17afb899d 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2132,10 +2132,6 @@ class FolderView extends BaseAppView { this.add_child(this._box); - let action = new Clutter.PanAction({ interpolate: true }); - action.connect('pan', this._onPan.bind(this)); - this._scrollView.add_action(action); - this._deletingFolder = false; this._apps = []; this._redisplay(); @@ -2195,13 +2191,6 @@ class FolderView extends BaseAppView { return icon; } - _onPan(action) { - let [dist_, dx_, dy] = action.get_motion_delta(0); - let adjustment = this._scrollView.vscroll.adjustment; - adjustment.value -= (dy / this._scrollView.height) * adjustment.page_size; - return false; - } - _loadApps() { this._apps = []; const excludedApps = this._folder.get_strv('excluded-apps');