Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 22, 2023
1 parent 36c1b93 commit 281e949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ class HoverPlugin {
this.lastMove = {x: event.clientX, y: event.clientY, target: event.target as HTMLElement, time: Date.now()}
if (this.hoverTimeout < 0) this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime)
let {active, tooltip} = this
if (tooltip && !isInTooltip(tooltip.dom, event) || this.pending) {
if (active && tooltip && !isInTooltip(tooltip.dom, event) || this.pending) {
let {pos} = active || this.pending!, end = active?.end ?? pos
if ((pos == end ? this.view.posAtCoords(this.lastMove) != pos
: !isOverRange(this.view, pos, end, event.clientX, event.clientY, Hover.MaxDist))) {
Expand Down

0 comments on commit 281e949

Please sign in to comment.