core: when mouse reporting, clear link state

This commit is contained in:
Mitchell Hashimoto
2024-07-07 12:26:40 -07:00
parent f1561a4cae
commit a32007bfeb

View File

@ -2736,9 +2736,13 @@ pub fn cursorPosCallback(
try self.mouseReport(button, .motion, self.mouse.mods, pos);
// If we were previously over a link, we need to queue a
// render to undo the link state.
if (over_link) try self.queueRender();
// If we were previously over a link, we need to undo the link state.
// We also queue a render so the renderer can undo the rendered link
// state.
if (over_link) {
self.rt_surface.mouseOverLink(null);
try self.queueRender();
}
// If we're doing mouse motion tracking, we do not support text
// selection.