projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b09b51
)
Don't bubble up click events for hints (#17).
author
Daniel Carl
<danielcarl@gmx.de>
Sat, 22 Jun 2013 12:33:53 +0000
(14:33 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 22 Jun 2013 12:33:53 +0000
(14:33 +0200)
I don't know if this change could break hinting on other sites, but at the
moment this fixes some problems on pages that binds event listener to elements
that stop further processing of the click events.
src/hints.js
patch
|
blob
|
history
diff --git
a/src/hints.js
b/src/hints.js
index
1fbe9aa
..
8a3466b
100644
(file)
--- a/
src/hints.js
+++ b/
src/hints.js
@@
-311,7
+311,7
@@
function VimbHints(mode, usage, bg, bgf, fg, style, maxHints)
function _mouseEvent(e, name)
{
var evObj = e.ownerDocument.createEvent("MouseEvents");
- evObj.initMouseEvent(name,
tru
e, true, e.contentWindow, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+ evObj.initMouseEvent(name,
fals
e, true, e.contentWindow, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
e.dispatchEvent(evObj);
}