Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

[bug]: Mobile scroll stops working after dismissing ViewerModalComponent #56

Open
marija126 opened this issue Mar 30, 2021 · 5 comments

Comments

@marija126
Copy link

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!

@mineminemine
Copy link

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.

@itshazlan
Copy link

still waiting for the solution

@chaymankala
Copy link

Any solution?

@ipehimanshu
Copy link

yes we have same issue

@way1001
Copy link

way1001 commented Oct 13, 2021

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants