more tweaks to mwinlib and input focus fix. work on keybind listener class, should test now

This commit is contained in:
2026-07-02 08:54:08 +02:00
parent c7d1610648
commit 871c5bed86
8 changed files with 133 additions and 41 deletions
+7 -1
View File
@@ -95,6 +95,7 @@ class MWinController {
this.#savedStyles = this.#node.style.cssText;
this.#savedTransition = this.#node.style.transition;
this.#node.style.transition = 'none';
this.#node.style.willChange = 'transform';
this.#wrapper.style.position = 'relative';
this.#node.style.position = 'absolute';
@@ -347,6 +348,10 @@ class MWinController {
if (!this.#pendingApply) {
this.#pendingApply = true;
this.#rafID = requestAnimationFrame(() => {
if (!this.state.moving && !this.state.resizing) {
this.#node.style.willChange = 'auto';
}
this.#rafID = null;
this.#pendingApply = false;
this.#apply();
@@ -430,6 +435,7 @@ class MWinController {
this.#node.style.transition = this.#savedTransition;
this.#node.style.willChange = 'auto';
this.#node.style.touchAction = '';
this.#node.style.cursor = 'auto';
window.removeEventListener('pointermove', this.#onPointerMove);
window.removeEventListener('pointerup', this.#onPointerUp);
@@ -522,7 +528,7 @@ class MWinController {
this.state.height = this.#wrapperHeight;
this.state.maximized = true;
}
this.#scheduleApply();
this.#apply();
}
close(): void {