From 037f23aef56ad42a1e3c0da1b52e52b0ee5864da Mon Sep 17 00:00:00 2001 From: Tony Atkins Date: Tue, 27 Feb 2024 11:08:09 +0100 Subject: [PATCH] GH-170: Removed focusout handling from overlay pointer. --- src/js/content_scripts/focus-overlay.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/js/content_scripts/focus-overlay.js b/src/js/content_scripts/focus-overlay.js index 55df629..9e0866a 100644 --- a/src/js/content_scripts/focus-overlay.js +++ b/src/js/content_scripts/focus-overlay.js @@ -18,10 +18,6 @@ handleFocusin: { funcName: "gamepad.focusOverlay.pointer.handleFocusin", args: ["{that}", "{arguments}.0"] // event - }, - handleFocusout: { - funcName: "gamepad.focusOverlay.pointer.handleFocusout", - args: ["{that}", "{arguments}.0"] // event } }, modelListeners: { @@ -34,14 +30,12 @@ gamepad.focusOverlay.pointer.listenForWindowFocusEvents = function (that) { window.addEventListener("focusin", that.handleFocusin); - window.addEventListener("focusout", that.handleFocusout); }; gamepad.focusOverlay.pointer.listenForModalFocusEvents = function (that) { var modalManagerShadowElement = fluid.get(that, "model.modalManagerShadowElement"); if (modalManagerShadowElement) { modalManagerShadowElement.addEventListener("focusin", that.handleFocusin); - modalManagerShadowElement.addEventListener("focusout", that.handleFocusout); } }; @@ -68,14 +62,6 @@ } }; - gamepad.focusOverlay.pointer.handleFocusout = function (that) { - var containerDomElement = that.container[0]; - - containerDomElement.style.height = 0; - containerDomElement.style.width = 0; - containerDomElement.style.borderRadius = 0; - }; - fluid.defaults("gamepad.focusOverlay", { gradeNames: ["gamepad.shadowHolder"], markup: {