more tweaks to mwinlib and input focus fix. work on keybind listener class, should test now
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user