iobroker.mywebui 1.37.91 → 1.37.92

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.
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.37.91",
4
+ "version": "1.37.92",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.37.91",
3
+ "version": "1.37.92",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -388,6 +388,10 @@ let ScreenViewer = class ScreenViewer extends BaseCustomWebComponentConstructorA
388
388
  if (window.location.href.includes('runtime.html')) return;
389
389
  const shouldPause = window.appShell?._editorAnimationsEnabled === true;
390
390
  if (shouldPause) {
391
+ // Stop GSAP-driven animations and effects (background-color, effects, etc.)
392
+ cleanupAnimations(this._rootShadow);
393
+ cleanupEffects(this._rootShadow);
394
+ // Also pause any remaining CSS @keyframes animations
391
395
  if (!this._editorPauseSheet) {
392
396
  this._editorPauseSheet = new CSSStyleSheet();
393
397
  this._editorPauseSheet.replaceSync('*, ::before, ::after { animation-play-state: paused !important; transition: none !important; }');
@@ -395,8 +399,14 @@ let ScreenViewer = class ScreenViewer extends BaseCustomWebComponentConstructorA
395
399
  if (!this._rootShadow.adoptedStyleSheets.includes(this._editorPauseSheet))
396
400
  this._rootShadow.adoptedStyleSheets = [...this._rootShadow.adoptedStyleSheets, this._editorPauseSheet];
397
401
  } else {
402
+ // Remove CSS pause sheet
398
403
  if (this._editorPauseSheet)
399
404
  this._rootShadow.adoptedStyleSheets = this._rootShadow.adoptedStyleSheets.filter(s => s !== this._editorPauseSheet);
405
+ // Restart GSAP animations if screen content is present
406
+ if (this._rootShadow.childElementCount > 0) {
407
+ scanAndApplyAnimations(this._rootShadow).catch(() => {});
408
+ scanAndApplyEffects(this._rootShadow).catch(() => {});
409
+ }
400
410
  }
401
411
  }
402
412
  _onEditorAnimationsChanged = (e) => this._applyEditorAnimationState();