mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01: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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user