Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix watchers.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Mar 24, 2024
1 parent 3a96d26 commit b6be4f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/component/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ function onResize() {
}
}
watch(() => state.screen.size, onScreenSyncChange)
watch(() => state.screen.size, onResize)
function updateConnectionType() {
if (screencast.value) {
Expand Down
6 changes: 3 additions & 3 deletions src/component/overlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ onMounted(() => {
}
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
// by the server before we can bind touch handler
Expand Down Expand Up @@ -532,7 +532,7 @@ function onTextInputChange() {
textInput.value = ''
}
watch(() => textInput.value, onTextInputChange)
watch(textInput, onTextInputChange)
function onWheel(e: WheelEvent) {
if (!props.isControling) {
Expand Down Expand Up @@ -713,8 +713,8 @@ function restartInactiveCursorInterval() {
}
watch(focused, restartInactiveCursorInterval)
watch(() => props.inactiveCursors, restartInactiveCursorInterval)
watch(() => props.isControling, restartInactiveCursorInterval)
watch(() => props.inactiveCursors, restartInactiveCursorInterval)
function saveInactiveMousePos(e: MouseEvent) {
const pos = getMousePos(e.clientX, e.clientY)
Expand Down

0 comments on commit b6be4f0

Please sign in to comment.