From 38a249849486305852d9305c78fc400b827746df Mon Sep 17 00:00:00 2001 From: Sebastian Kupke Date: Mon, 27 May 2019 15:42:55 +0200 Subject: [PATCH] Fixed DeepZoom bounds bug. --- dist/iwmlib.pixi.js | 2 +- lib/pixi/deepzoom/image.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/iwmlib.pixi.js b/dist/iwmlib.pixi.js index 52c0965..cbefb04 100644 --- a/dist/iwmlib.pixi.js +++ b/dist/iwmlib.pixi.js @@ -9113,7 +9113,7 @@ } worldBounds() { - let viewBounds = this.app.scene.bounds; + let viewBounds = this.app.scene.getBounds(); // Using getBounds extends visible scope after loading tiles and leads // to excessive loading if (this.world != null) { diff --git a/lib/pixi/deepzoom/image.js b/lib/pixi/deepzoom/image.js index 58a064b..b45cc0b 100755 --- a/lib/pixi/deepzoom/image.js +++ b/lib/pixi/deepzoom/image.js @@ -645,7 +645,7 @@ export class DeepZoomImage extends PIXI.Container { } worldBounds() { - let viewBounds = this.app.scene.bounds + let viewBounds = this.app.scene.getBounds() // Using getBounds extends visible scope after loading tiles and leads // to excessive loading if (this.world != null) {