From 8f116d562236d9bb4dfe7d5132bd51ad365984b5 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Tue, 26 Mar 2013 15:00:59 +0100 Subject: [PATCH] Bug 854075 - Use mouseover instead of mouseenter for newtab page; r=jaws --- browser/base/content/newtab/sites.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/base/content/newtab/sites.js b/browser/base/content/newtab/sites.js index 229532eca98..d1745aff9ed 100644 --- a/browser/base/content/newtab/sites.js +++ b/browser/base/content/newtab/sites.js @@ -144,7 +144,7 @@ Site.prototype = { // Register drag-and-drop event handlers. this._node.addEventListener("dragstart", this, false); this._node.addEventListener("dragend", this, false); - this._node.addEventListener("mouseenter", this, false); + this._node.addEventListener("mouseover", this, false); let controls = this.node.querySelectorAll(".newtab-control"); for (let i = 0; i < controls.length; i++) @@ -174,7 +174,8 @@ Site.prototype = { else this.pin(); break; - case "mouseenter": + case "mouseover": + this._node.removeEventListener("mouseover", this, false); this._speculativeConnect(); break; case "dragstart":