diff options
author | Maxim Devaev <[email protected]> | 2021-04-12 15:26:32 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-12 15:26:32 +0300 |
commit | 3af4a8b852019993ee31becd5651734377da6ec9 (patch) | |
tree | 499b77bfaa0c6f939175ea167d5ccb3956be95f0 /web/share/js/keypad.js | |
parent | 8158941833bd8a50278b61967e00d23522e633d7 (diff) |
Rework of #39 (#40)
* Rework of #39 patch from @arykov (thanks)
* styled resize corner
* fixed squashing of resizaable window on moving
* keep window size and opsition after full screen
* not necessary
* attempt to fix desktop overflow
* improved
* ios fixes
* refactoring
Diffstat (limited to 'web/share/js/keypad.js')
-rw-r--r-- | web/share/js/keypad.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/share/js/keypad.js b/web/share/js/keypad.js index 554e43cf..23ed0620 100644 --- a/web/share/js/keypad.js +++ b/web/share/js/keypad.js @@ -138,7 +138,7 @@ export function Keypad(keys_parent, key_callback) { var __isPressed = function(el_key) { let is_pressed = false; let el_keys = __resolveKeys(el_key); - for (let el_key of el_keys) { + for (el_key of el_keys) { is_pressed = (is_pressed || el_key.classList.contains("pressed")); } return is_pressed; @@ -147,7 +147,7 @@ export function Keypad(keys_parent, key_callback) { var __isHolded = function(el_key) { let is_holded = false; let el_keys = __resolveKeys(el_key); - for (let el_key of el_keys) { + for (el_key of el_keys) { is_holded = (is_holded || el_key.classList.contains("holded")); } return is_holded; @@ -156,7 +156,7 @@ export function Keypad(keys_parent, key_callback) { var __isActive = function(el_key) { let is_active = false; let el_keys = __resolveKeys(el_key); - for (let el_key of el_keys) { + for (el_key of el_keys) { is_active = (is_active || el_key.classList.contains("pressed") || el_key.classList.contains("holded")); } return is_active; @@ -164,14 +164,14 @@ export function Keypad(keys_parent, key_callback) { var __activate = function(el_key, cls) { let el_keys = __resolveKeys(el_key); - for (let el_key of el_keys) { + for (el_key of el_keys) { el_key.classList.add(cls); } }; var __deactivate = function(el_key) { let el_keys = __resolveKeys(el_key); - for (let el_key of el_keys) { + for (el_key of el_keys) { el_key.classList.remove("pressed"); el_key.classList.remove("holded"); } |