Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12446 from crdlc/bug-920411
Browse files Browse the repository at this point in the history
Bug 920411 - When homescreen is in Edit mode I can still swipe right and...
  • Loading branch information
Cristian Rodriguez committed Sep 26, 2013
2 parents 6d9eec5 + 9cc522d commit d7309be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/homescreen/js/grid.js
Expand Up @@ -198,7 +198,8 @@ var GridManager = (function() {

var refresh;

if (currentPage === 0) {
if (currentPage === 0 ||
(Homescreen.isInEditMode() && currentPage === nextLandingPage)) {
var next = pages[currentPage + 1].container.style;
refresh = function(e) {
if (deltaX <= 0) {
Expand Down Expand Up @@ -371,7 +372,8 @@ var GridManager = (function() {
if (forward && currentPage < pages.length - 1) {
page = page + 1;
} else if (!forward && page > 0) {
page = page - 1;
if (!(page === nextLandingPage && Homescreen.isInEditMode()))
page = page - 1;
}
} else if (!isPanning && evt) {
releaseEvents();
Expand Down

0 comments on commit d7309be

Please sign in to comment.