Skip to content
Snippets Groups Projects
Commit 37d31d53 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[lint addon] Fix tooltips when page is scrolled

parent c4f8fd32
No related branches found
No related tags found
Loading
......@@ -177,7 +177,7 @@
if (!/\bCodeMirror-lint-mark-/.test((e.target || e.srcElement).className)) return;
for (var i = 0; i < nearby.length; i += 2) {
var spans = cm.findMarksAt(cm.coordsChar({left: e.clientX + nearby[i],
top: e.clientY + nearby[i + 1]}));
top: e.clientY + nearby[i + 1]}, "client"));
for (var j = 0; j < spans.length; ++j) {
var span = spans[j], ann = span.__annotation;
if (ann) return popupSpanTooltip(ann, e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment