mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(refresher): fix pull to refresh with native scrolling on kitkat
This commit is contained in:
6
js/angular/controller/refresherController.js
vendored
6
js/angular/controller/refresherController.js
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user