ngx-ionic-image-viewer
ngx-ionic-image-viewer copied to clipboard
[bug]: Mobile scroll stops working after dismissing ViewerModalComponent
Bug Report
**Ionic version: ** Ionic CLI: 6.11.8 Ionic Framework: @ionic/angular 5.5.2
Current behavior: I have a modal that contains a button to open image viewer. After dismissing the image viewer, mobile scroll stops working while mouse scroll event works normally. Swiping down triggers closing the parent modal that contains button to open the image viewer.
I presume that this code is causing the bug but was unable to solve it by myself. The code is from ngx-ionic-image-viewer.umd.js file on line 397
modal.onWillDismiss().then((/**
* @return {?}
*/
function () {
document.removeEventListener('mousedown', _this.swipeStart, true);
document.removeEventListener('mousemove', _this.swipeMove, true);
document.removeEventListener('mouseup', _this.swipeMove, true);
document.removeEventListener('touchstart', _this.swipeStart, true);
document.removeEventListener('touchmove', _this.swipeMove, true);
document.removeEventListener('touchend', _this.swipeMove, true);
}));
This is the link to a video show the behaviour: video
This is my first time reporting a bug so I hope I did it correctly.
Thanks!
I can confirm that I am also suffering from this bug. It happens to whenever you use the image viewer on top of a modal.
still waiting for the solution
Any solution?
yes we have same issue
+1