Skip to content

Commit

Permalink
fix(refresher): fix pull to refresh with native scrolling on kitkat
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed Apr 16, 2015
1 parent 7c5ef27 commit 71e8971
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/angular/controller/refresherController.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ IonicModule
startY = parseInt(e.touches[0].screenY, 10);
}

// kitkat fix for touchcancel events http://updates.html5rocks.com/2014/05/A-More-Compatible-Smoother-Touch
if (ionic.Platform.isAndroid() && ionic.Platform.version() === 4.4 && scrollParent.scrollTop === 0) {
isDragging = true;
e.preventDefault();
}

// how far have we dragged so far?
deltaY = parseInt(e.touches[0].screenY, 10) - startY;

Expand Down

0 comments on commit 71e8971

Please sign in to comment.