ngx-ionic-image-viewer icon indicating copy to clipboard operation
ngx-ionic-image-viewer copied to clipboard

[bug]: Mobile scroll stops working after dismissing ViewerModalComponent

Open marija126 opened this issue 3 years ago • 5 comments

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!

marija126 avatar Mar 30 '21 14:03 marija126

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.

mineminemine avatar May 19 '21 09:05 mineminemine

still waiting for the solution

itshazlan avatar Jun 25 '21 09:06 itshazlan

Any solution?

chaymankala avatar Sep 07 '21 06:09 chaymankala

yes we have same issue

ipehimanshu avatar Oct 04 '21 12:10 ipehimanshu

+1

way1001 avatar Oct 13 '21 03:10 way1001