mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix watchers.
This commit is contained in:
parent
3a96d2611e
commit
b6be4f09fc
@ -706,7 +706,7 @@ function onResize() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => state.screen.size, onScreenSyncChange)
|
watch(() => state.screen.size, onResize)
|
||||||
|
|
||||||
function updateConnectionType() {
|
function updateConnectionType() {
|
||||||
if (screencast.value) {
|
if (screencast.value) {
|
||||||
|
@ -174,7 +174,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
keyboard.listenTo(textarea.value!)
|
keyboard.listenTo(textarea.value!)
|
||||||
|
|
||||||
// bind touch handler using @Watch on supportedTouchEvents
|
// bind touch handler using `watch` on supportedTouchEvents
|
||||||
// because we need to know if touch events are supported
|
// because we need to know if touch events are supported
|
||||||
// by the server before we can bind touch handler
|
// by the server before we can bind touch handler
|
||||||
|
|
||||||
@ -532,7 +532,7 @@ function onTextInputChange() {
|
|||||||
textInput.value = ''
|
textInput.value = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => textInput.value, onTextInputChange)
|
watch(textInput, onTextInputChange)
|
||||||
|
|
||||||
function onWheel(e: WheelEvent) {
|
function onWheel(e: WheelEvent) {
|
||||||
if (!props.isControling) {
|
if (!props.isControling) {
|
||||||
@ -713,8 +713,8 @@ function restartInactiveCursorInterval() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
watch(focused, restartInactiveCursorInterval)
|
watch(focused, restartInactiveCursorInterval)
|
||||||
watch(() => props.inactiveCursors, restartInactiveCursorInterval)
|
|
||||||
watch(() => props.isControling, restartInactiveCursorInterval)
|
watch(() => props.isControling, restartInactiveCursorInterval)
|
||||||
|
watch(() => props.inactiveCursors, restartInactiveCursorInterval)
|
||||||
|
|
||||||
function saveInactiveMousePos(e: MouseEvent) {
|
function saveInactiveMousePos(e: MouseEvent) {
|
||||||
const pos = getMousePos(e.clientX, e.clientY)
|
const pos = getMousePos(e.clientX, e.clientY)
|
||||||
|
Loading…
Reference in New Issue
Block a user