|
|
|
@ -37,12 +37,10 @@ |
|
|
|
const handleMouseEnter = (e: MouseEvent) => { |
|
|
|
const handleMouseEnter = (e: MouseEvent) => { |
|
|
|
hasCursor = true; |
|
|
|
hasCursor = true; |
|
|
|
dispatch('cursorcapture', e); |
|
|
|
dispatch('cursorcapture', e); |
|
|
|
console.debug(`${rootId} has cursor.`); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleMouseLeave = (_: MouseEvent) => { |
|
|
|
const handleMouseLeave = (_: MouseEvent) => { |
|
|
|
hasCursor = false; |
|
|
|
hasCursor = false; |
|
|
|
console.debug(`${rootId} lost cursor.`); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: Trigger rerender when editing state changes. |
|
|
|
// TODO: Trigger rerender when editing state changes. |
|
|
|
|