diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index aca6002eb..3385a60f9 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -326,7 +326,7 @@ class BaseAppViewGridLayout extends Clutter.BinLayout { } _translatePreviousPageIcons(value, ltr) { - if (this._currentPage === 0) + if (this._currentPage <= 0) return; const previousPage = this._currentPage - 1; @@ -447,7 +447,7 @@ class BaseAppViewGridLayout extends Clutter.BinLayout { } goToPage(page, animate = true) { - if (this._currentPage === page) + if (this._currentPage === page || page < 0) return; this._currentPage = page;