Bug 755549 - Don't provide haptic feedback if the body or root element listeners are what make the element clickable. r=mfinkle

This commit is contained in:
Kartikaya Gupta 2012-05-18 08:35:55 -04:00
parent 84d65c377a
commit 9e2c096b5f

View File

@ -2654,7 +2654,7 @@ var BrowserEventHandler = {
this._sendMouseEvent("mousedown", element, data.x, data.y);
this._sendMouseEvent("mouseup", element, data.x, data.y);
if (ElementTouchHelper.isElementClickable(element, null, true))
if (ElementTouchHelper.isElementClickable(element, null, false))
Haptic.performSimpleAction(Haptic.LongPress);
} catch(e) {
Cu.reportError(e);