зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1311409 - Eyedropper click doesn't work, have to use Enter key r=me
This commit is contained in:
Родитель
0a663f0572
Коммит
ec7039917e
|
@ -144,7 +144,7 @@ EyeDropper.prototype = {
|
|||
// Start listening for user events.
|
||||
let {pageListenerTarget} = this.highlighterEnv;
|
||||
pageListenerTarget.addEventListener("mousemove", this);
|
||||
pageListenerTarget.addEventListener("click", this);
|
||||
pageListenerTarget.addEventListener("click", this, true);
|
||||
pageListenerTarget.addEventListener("keydown", this);
|
||||
pageListenerTarget.addEventListener("DOMMouseScroll", this);
|
||||
pageListenerTarget.addEventListener("FullZoomChange", this);
|
||||
|
@ -179,7 +179,7 @@ EyeDropper.prototype = {
|
|||
|
||||
let {pageListenerTarget} = this.highlighterEnv;
|
||||
pageListenerTarget.removeEventListener("mousemove", this);
|
||||
pageListenerTarget.removeEventListener("click", this);
|
||||
pageListenerTarget.removeEventListener("click", this, true);
|
||||
pageListenerTarget.removeEventListener("keydown", this);
|
||||
pageListenerTarget.removeEventListener("DOMMouseScroll", this);
|
||||
pageListenerTarget.removeEventListener("FullZoomChange", this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче