Closed asa47 closed 5 years ago
Facing the same issue here. Did you manage to find a workaround @asa47 ?
@ronaldso55 Yes, inside your ionic.bundle.js, look for the SlideDrag.prototype.end
function, and modify the ionic.requestAnimationFrame
callback method with the following:
ionic.requestAnimationFrame(function() {
if (restingPoint === 0) {
// Fix iOS 12.2 scrolling issue
if(!(self && self._currentDrag && self._currentDrag.content)){
return;
}
self._currentDrag.content.style[ionic.CSS.TRANSFORM] = '';
var buttons = self._currentDrag.buttons;
.
.
.
Lastly use the following css:
/* Force all the ionic elements to be scrollable, in order to fix iOS 12.2 scroll bug*/
ion-view { pointer-events: auto;}
ion-scroll { pointer-events: auto;}
ion-modal-view { pointer-events: auto;}
ion-popover-view { pointer-events: auto;}
/* Disable the scroll of the main view elements if the modal or the popver are being shown*/
body.modal-open ion-nav-view, body.modal-open ion-nav-view ion-content, body.modal-open ion-nav-view ion-view{
overflow: hidden!important;
}
body.popover-open ion-nav-view, body.popover-open ion-nav-view ion-content, body.popover-open ion-nav-view ion-view{
overflow: hidden!important;
}
body.popup-open ion-nav-view, body.popup-open ion-nav-view ion-content, body.popup-open ion-nav-view ion-view{
overflow: hidden!important;
}
body.modal-open ion-nav-view ion-view ion-scroll, body.popover-open ion-nav-view ion-view ion-scroll, body.popup-open ion-nav-view ion-view ion-scroll{
pointer-events: none!important;
overflow: hidden!important;
}
Thanks @asa47! It worked like a charm. Much appreciated.
Short description of the problem:
There is a bug in iOS 12.2 that breaks the scrolling on the device, as if the scrollable area becomes frozen. This scroll freeze persists until some other change is made to the DOM.
Any suggestion on what we should do to fix the issue on ionic1 applications?
What behavior are you expecting?
Scrolling should work on scrollable area.
Other information: The issue has been fixed in ionic-angular 3.9.5 (ionic-v3) Patch for iOS 12.2 scrolling bug on ionic-angular 3.9.5
Which Ionic Version? 1.x
Run
ionic info
from terminal/cmd prompt: (paste output below)