From 79f41a60012a8cceca3b7ee0404034664a25deca Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 6 Jan 2026 09:58:40 +0000 Subject: [PATCH] fix(applauncher): throttle inactivity timer resets in menus, optimize sound slider updates, and adjust keyboard layout/keys --- changelog.md | 8 +++++ ts_web/00_commitinfo_data.ts | 2 +- .../eco-applauncher-batterymenu.ts | 8 ++++- .../eco-applauncher-keyboard.ts | 17 +++++++++-- .../eco-applauncher-soundmenu.ts | 30 +++++++++++++++++-- .../eco-applauncher-wifimenu.ts | 8 ++++- 6 files changed, 64 insertions(+), 9 deletions(-) diff --git a/changelog.md b/changelog.md index 3f81623..1311738 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2026-01-06 - 3.34.2 - fix(applauncher) +throttle inactivity timer resets in menus, optimize sound slider updates, and adjust keyboard layout/keys + +- Add lastActivityTime and throttle resetInactivityTimer to only reset if 5+ seconds have passed in battery, sound, and wifi menus to reduce frequent resets from continuous input. +- Remove @mousemove listener in menu containers and rely on mousedown + throttled resets to lower event noise. +- Debounce slider mousemove handling in sound menu using requestAnimationFrame and pendingPercentage to batch setVolume calls and cancel RAF on mouseup, preventing excessive volume updates. +- Add up/down arrow keys to virtual keyboard, reduce space key width from 4 to 3, and add .key.wide-3 CSS class to support the new sizing. + ## 2026-01-06 - 3.34.1 - fix(elements/applauncher) add eco app launcher components, wifi/sound/battery menus, demos and new eco-screensaver; replace dees-screensaver (breaking API change) diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index b558c15..47e3d45 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@ecobridge.xyz/catalog', - version: '3.34.1', + version: '3.34.2', description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.' } diff --git a/ts_web/elements/00group-applauncher/eco-applauncher-batterymenu/eco-applauncher-batterymenu.ts b/ts_web/elements/00group-applauncher/eco-applauncher-batterymenu/eco-applauncher-batterymenu.ts index b937730..4de2cad 100644 --- a/ts_web/elements/00group-applauncher/eco-applauncher-batterymenu/eco-applauncher-batterymenu.ts +++ b/ts_web/elements/00group-applauncher/eco-applauncher-batterymenu/eco-applauncher-batterymenu.ts @@ -248,6 +248,7 @@ export class EcoApplauncherBatterymenu extends DeesElement { private boundHandleClickOutside = this.handleClickOutside.bind(this); private inactivityTimeout: ReturnType | null = null; private readonly INACTIVITY_TIMEOUT = 60000; // 1 minute + private lastActivityTime = 0; public render(): TemplateResult { const fillClass = this.getFillClass(); @@ -255,7 +256,6 @@ export class EcoApplauncherBatterymenu extends DeesElement { return html`