Fix unhover issue during transition between overlapping objects

This commit is contained in:
Philip Matsson
2024-03-15 16:04:41 +01:00
committed by Matthieu Baumann
parent dfd91d9632
commit 54fcfe9f2b

View File

@@ -989,6 +989,14 @@ export let View = (function () {
}
}
if (lastHoveredObject && o != lastHoveredObject) {
lastHoveredObject.unhover();
if (typeof objHoveredStopFunction === 'function') {
objHoveredStopFunction(lastHoveredObject, xymouse);
}
}
o.hover();
lastHoveredObject = o;
} else {