From 40bd48068f42b89ec7682ff3e8cd3d6261c0b79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 24 Jun 2022 13:15:41 +0200 Subject: [PATCH] appDisplay: Consider drag events during page-switching as invalid While there's an ongoing animation to switch pages, we should ignore all drag events as those will end up moving the drag item to an unwanted position. Part-of: --- js/ui/appDisplay.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 0d0b1e56a..3c7d2f3d4 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -798,6 +798,7 @@ var BaseAppView = GObject.registerClass({ // Dragging over invalid parts of the grid cancels the timeout if (item === source || + this._adjustment.get_transition('value') !== null || page !== this._grid.currentPage || dragLocation === IconGrid.DragLocation.INVALID || dragLocation === IconGrid.DragLocation.ON_ICON) {