Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 550c552

Browse files
author
Tim Taubert
committed
Bug 854075 - Use mouseover instead of mouseenter for newtab page; r=jaws
1 parent 5000bb0 commit 550c552

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

browser/base/content/newtab/sites.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Site.prototype = {
144144
// Register drag-and-drop event handlers.
145145
this._node.addEventListener("dragstart", this, false);
146146
this._node.addEventListener("dragend", this, false);
147-
this._node.addEventListener("mouseenter", this, false);
147+
this._node.addEventListener("mouseover", this, false);
148148

149149
let controls = this.node.querySelectorAll(".newtab-control");
150150
for (let i = 0; i < controls.length; i++)
@@ -174,7 +174,8 @@ Site.prototype = {
174174
else
175175
this.pin();
176176
break;
177-
case "mouseenter":
177+
case "mouseover":
178+
this._node.removeEventListener("mouseover", this, false);
178179
this._speculativeConnect();
179180
break;
180181
case "dragstart":

0 commit comments

Comments
 (0)