workspacesDisplay: Cancel click when panning

When switching between workspaces via panning, we don't want to
leave the overview when we end up on an empty workspace.

https://bugzilla.gnome.org/show_bug.cgi?id=766883
This commit is contained in:
Florian Müllner 2016-06-24 18:10:28 +02:00
parent 500ea13155
commit 02bad8e92b

View File

@ -436,6 +436,7 @@ const WorkspacesDisplay = new Lang.Class({
return true;
}));
panAction.connect('gesture-cancel', Lang.bind(this, function() {
clickAction.release();
for (let i = 0; i < this._workspacesViews.length; i++)
this._workspacesViews[i].endSwipeScroll();
}));