Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Vänttinen <sami.vanttinen@protonmail.com>2022-07-10 09:49:11 +0300
committerGitHub <noreply@github.com>2022-07-10 09:49:11 +0300
commit2298734b2063cfa50843e0ff9f57fbc0fc759443 (patch)
treef787b662c5c3bd36de126bc3a792135458c6aa8e
parenta2321b2424c7f7bc78172b9ec1ae53826b27da23 (diff)
parent7190573aaa617ac59b15c1fdc91dd7c27a3f1db6 (diff)
Merge pull request #1677 from keepassxreboot/fix/update_icon_position_on_transitionend
Fix icon position at transitionend event
-rw-r--r--keepassxc-browser/content/ui.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js
index d3d06e1..0f09f2d 100644
--- a/keepassxc-browser/content/ui.js
+++ b/keepassxc-browser/content/ui.js
@@ -105,6 +105,12 @@ kpxcUI.monitorIconPosition = function(iconClass) {
window.addEventListener('scroll', function(e) {
kpxcUI.updateIconPosition(iconClass);
});
+
+ window.addEventListener('transitionend', function(e) {
+ if (e.target && (e.target.nodeName === 'INPUT' || e.target.nodeName === 'TEXTAREA')) {
+ kpxcUI.updateIconPosition(iconClass);
+ }
+ });
};
kpxcUI.updateIconPosition = function(iconClass) {