mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
parent
aeb9f8037f
commit
fe329d6aae
1 changed files with 0 additions and 13 deletions
|
@ -12,13 +12,6 @@ app.views.SidebarHover = class SidebarHover extends app.View {
|
|||
|
||||
static routes = { after: "onRoute" };
|
||||
|
||||
constructor(el) {
|
||||
super(el);
|
||||
if (!isPointerEventsSupported()) {
|
||||
delete this.constructor.events.mouseover;
|
||||
}
|
||||
}
|
||||
|
||||
show(el) {
|
||||
if (el !== this.cursor) {
|
||||
this.hide();
|
||||
|
@ -115,9 +108,3 @@ app.views.SidebarHover = class SidebarHover extends app.View {
|
|||
this.hide();
|
||||
}
|
||||
};
|
||||
|
||||
var isPointerEventsSupported = function () {
|
||||
const el = document.createElement("div");
|
||||
el.style.cssText = "pointer-events: auto";
|
||||
return el.style.pointerEvents === "auto";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue