@hkdigital/lib-core 0.5.5 → 0.5.7

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.
@@ -140,7 +140,8 @@
140
140
  return; // Skip first of the two resize events
141
141
  }
142
142
 
143
- skipNextResize = true;
143
+ // skipNextResize = true; // disabled to test <<
144
+
144
145
  debouncedWindowWidth = windowWidth;
145
146
  debouncedWindowHeight = windowHeight;
146
147
 
@@ -169,16 +170,16 @@
169
170
  });
170
171
 
171
172
  $effect(() => {
172
- console.debug('getIsLandscape effect running', {
173
- isPwa,
174
- isAppleMobile,
175
- windowWidth,
176
- windowHeight,
177
- debouncedWindowWidth,
178
- debouncedWindowHeight,
179
- iosWindowWidth,
180
- iosWindowHeight
181
- });
173
+ // console.debug('getIsLandscape effect running', {
174
+ // isPwa,
175
+ // isAppleMobile,
176
+ // windowWidth,
177
+ // windowHeight,
178
+ // debouncedWindowWidth,
179
+ // debouncedWindowHeight,
180
+ // iosWindowWidth,
181
+ // iosWindowHeight
182
+ // });
182
183
 
183
184
  if (isPwa && isAppleMobile) {
184
185
  // For iOS PWA, use iOS-specific dimensions
@@ -189,9 +190,9 @@
189
190
  }
190
191
  });
191
192
 
192
- $inspect('isLandscape', isLandscape);
193
- $inspect('windowWidth/Height', windowWidth, windowHeight);
194
- $inspect('iosWindowWidth/Height', iosWindowWidth, iosWindowHeight);
193
+ // $inspect('isLandscape', isLandscape);
194
+ // $inspect('windowWidth/Height', windowWidth, windowHeight);
195
+ // $inspect('iosWindowWidth/Height', iosWindowWidth, iosWindowHeight);
195
196
 
196
197
  // Update game dimensions based on window size and orientation
197
198
  $effect(() => {
@@ -276,13 +277,13 @@
276
277
  iosWindowWidth = window.innerWidth;
277
278
  iosWindowHeight = window.innerHeight;
278
279
  }
279
- console.debug('updateIosWidthHeight', {
280
- angle,
281
- 'window.innerWidth': window.innerWidth,
282
- 'window.innerHeight': window.innerHeight,
283
- iosWindowWidth,
284
- iosWindowHeight
285
- });
280
+ // console.debug('updateIosWidthHeight', {
281
+ // angle,
282
+ // 'window.innerWidth': window.innerWidth,
283
+ // 'window.innerHeight': window.innerHeight,
284
+ // iosWindowWidth,
285
+ // iosWindowHeight
286
+ // });
286
287
  }
287
288
  }
288
289
 
@@ -426,7 +427,10 @@
426
427
  <!-- margin: /* top | right | bottom | left */ -->
427
428
 
428
429
  {#if gameHeight}
429
- <div class:center>
430
+ <div
431
+ class:center
432
+ style:height={center ? `${iosWindowHeight ?? windowHeight}px` : undefined}
433
+ >
430
434
  <div
431
435
  data-component="game-box"
432
436
  data-orientation={isLandscape ? 'landscape' : 'portrait'}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"