Skip to content

Commit 71e8971

Browse files
committed
fix(refresher): fix pull to refresh with native scrolling on kitkat
1 parent 7c5ef27 commit 71e8971

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: js/angular/controller/refresherController.js

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ IonicModule
7878
startY = parseInt(e.touches[0].screenY, 10);
7979
}
8080

81+
// kitkat fix for touchcancel events http://updates.html5rocks.com/2014/05/A-More-Compatible-Smoother-Touch
82+
if (ionic.Platform.isAndroid() && ionic.Platform.version() === 4.4 && scrollParent.scrollTop === 0) {
83+
isDragging = true;
84+
e.preventDefault();
85+
}
86+
8187
// how far have we dragged so far?
8288
deltaY = parseInt(e.touches[0].screenY, 10) - startY;
8389

0 commit comments

Comments
 (0)