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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2318>
This commit is contained in:
parent
abc43530bc
commit
4920cf1eb6
@ -2132,10 +2132,6 @@ class FolderView extends BaseAppView {
|
|||||||
|
|
||||||
this.add_child(this._box);
|
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._deletingFolder = false;
|
||||||
this._apps = [];
|
this._apps = [];
|
||||||
this._redisplay();
|
this._redisplay();
|
||||||
@ -2195,13 +2191,6 @@ class FolderView extends BaseAppView {
|
|||||||
return icon;
|
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() {
|
_loadApps() {
|
||||||
this._apps = [];
|
this._apps = [];
|
||||||
const excludedApps = this._folder.get_strv('excluded-apps');
|
const excludedApps = this._folder.get_strv('excluded-apps');
|
||||||
|
Loading…
Reference in New Issue
Block a user