Skip to content

Commit

Permalink
[fix] overflow is none when visualizer is active
Browse files Browse the repository at this point in the history
  • Loading branch information
akrck02 committed Jul 3, 2023
1 parent 0a2d3b2 commit cbefd89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/visualizer/Visualizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export class Visualizer extends UIComponent {
});

setEvents(this.buttonClose.element, {
click: () => {
this.close();
}
click: () => this.close()
});

setStyles(this.buttonClose.element, {
Expand Down Expand Up @@ -116,6 +114,7 @@ export class Visualizer extends UIComponent {
}

this.image.element.setAttribute("src", image);
document.body.style.overflow = "hidden";

}

Expand All @@ -128,6 +127,7 @@ export class Visualizer extends UIComponent {
}

public close(){
document.body.style.overflow = "auto";
this.element.style.display = "none";
}

Expand Down

0 comments on commit cbefd89

Please sign in to comment.