Skip to content

Commit

Permalink
GH-170: Removed focusout handling from overlay pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
duhrer committed Feb 27, 2024
1 parent 307da61 commit 037f23a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/js/content_scripts/focus-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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);
}
};

Expand All @@ -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: {
Expand Down

0 comments on commit 037f23a

Please sign in to comment.