zimjs 17.2.0 → 17.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/zim.js +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zimjs",
3
- "version": "17.2.0",
3
+ "version": "17.2.1",
4
4
  "type": "module",
5
5
  "main": "./src/zim.js",
6
6
  "types": "./ts-src/typings/zim",
package/src/zim.js CHANGED
@@ -36948,10 +36948,15 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
36948
36948
  loader.resize();
36949
36949
  }
36950
36950
  adjustBoxes();
36951
- setTimeout(function(){
36951
+ if (obj.width) {
36952
36952
  obj.scaleTo(that.box,100,100).loc(0,0,sc,0);
36953
36953
  that.stage.update();
36954
- },20);
36954
+ } else {
36955
+ setTimeout(function() {
36956
+ obj.scaleTo(that.box,100,100).loc(0,0,sc,0);
36957
+ that.stage.update();
36958
+ }, 50);
36959
+ }
36955
36960
  }
36956
36961
  if (resize) {
36957
36962
  that.resizeHandle.on("pressup", function() {