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 #14135 from crdlc/bug-942294
Browse files Browse the repository at this point in the history
Bug 942294 - unable swipe from e.me to apps page if swipe starts at edge...
  • Loading branch information
Cristian Rodriguez committed Nov 28, 2013
2 parents 7d53976 + c1e56d2 commit 833afc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/homescreen/js/grid.js
Expand Up @@ -324,14 +324,13 @@ var GridManager = (function() {
window.mozRequestAnimationFrame(refresh);
};

var container = pages[currentPage].container;
container.addEventListener(touchmove, pan, true);
window.addEventListener(touchmove, pan, true);

removePanHandler = function removePanHandler(e) {
touchEndTimestamp = e ? e.timeStamp : Number.MAX_VALUE;
window.removeEventListener(touchend, removePanHandler, true);

container.removeEventListener(touchmove, pan, true);
window.removeEventListener(touchmove, pan, true);

window.mozRequestAnimationFrame(function panTouchEnd() {
onTouchEnd(deltaX, e);
Expand Down

0 comments on commit 833afc8

Please sign in to comment.