fix watchers and intervals.

This commit is contained in:
Miroslav Šedivý
2024-03-17 11:21:14 +01:00
parent c8c7df7c3c
commit 4b1fbbf836
4 changed files with 16 additions and 21 deletions

View File

@ -722,7 +722,9 @@ function restartInactiveCursorInterval() {
}
}
watch([focused, props.isControling, props.inactiveCursors], restartInactiveCursorInterval)
watch(focused, restartInactiveCursorInterval)
watch(() => props.inactiveCursors, restartInactiveCursorInterval)
watch(() => props.isControling, restartInactiveCursorInterval)
function saveInactiveMousePos(e: MouseEvent) {
const pos = getMousePos(e.clientX, e.clientY)