From b02a173a6956d1691277550d607c3dbceee19609 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Sun, 13 Nov 2022 09:12:25 -0500 Subject: [PATCH] Avoid negative page values --- js/ui/appDisplay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index fd73bf1b7..b403b0d8d 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -316,7 +316,7 @@ class BaseAppViewGridLayout extends Clutter.BinLayout { } _translatePreviousPageIcons(value, ltr) { - if (this._currentPage === 0) + if (this._currentPage <= 0) return; const previousPage = this._currentPage - 1; @@ -437,7 +437,7 @@ class BaseAppViewGridLayout extends Clutter.BinLayout { } goToPage(page, animate = true) { - if (this._currentPage === page) + if (this._currentPage === page || page < 0) return; this._currentPage = page;