mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #6390 from overleaf/ae-is-visible-binary
[web] Only run updateOnResize when the PDF viewer is visible GitOrigin-RevId: 90b5632f45406b66af7710c6e8346cf73ffbebea
This commit is contained in:
parent
5701cc9e4b
commit
1dd62570a6
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,10 @@ export default class PDFJSWrapper {
|
|||
|
||||
// update the current scale value if the container size changes
|
||||
updateOnResize() {
|
||||
if (!this.isVisible()) {
|
||||
return
|
||||
}
|
||||
|
||||
const currentScaleValue = this.viewer.currentScaleValue
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue