@codemirror/lint 0.19.5 → 0.19.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -611,7 +611,7 @@ function trackHoverOn(view, marker) {
|
|
|
611
611
|
}
|
|
612
612
|
function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
613
613
|
function hovered() {
|
|
614
|
-
let line = view.
|
|
614
|
+
let line = view.elementAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
|
|
615
615
|
const linePos = view.coordsAtPos(line.from);
|
|
616
616
|
if (linePos) {
|
|
617
617
|
view.dispatch({ effects: setLintGutterTooltip.of({
|
package/dist/index.js
CHANGED
|
@@ -603,7 +603,7 @@ function trackHoverOn(view, marker) {
|
|
|
603
603
|
}
|
|
604
604
|
function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
605
605
|
function hovered() {
|
|
606
|
-
let line = view.
|
|
606
|
+
let line = view.elementAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
|
|
607
607
|
const linePos = view.coordsAtPos(line.from);
|
|
608
608
|
if (linePos) {
|
|
609
609
|
view.dispatch({ effects: setLintGutterTooltip.of({
|