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

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

@marija126

Description

@marija126

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions