Skip to content

Commit

Permalink
Make toggling full-screen with the joystick faster
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Oct 27, 2023
1 parent e1430fa commit 28370ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const routerSection = ref()
// Full screen toggling
const { isFullscreen, toggle: toggleFullscreen } = useFullscreen()
const debouncedToggleFullScreen = useDebounceFn(() => toggleFullscreen(), 500)
const debouncedToggleFullScreen = useDebounceFn(() => toggleFullscreen(), 10)
const fullScreenCallbackId = registerActionCallback(CockpitAction.TOGGLE_FULL_SCREEN, debouncedToggleFullScreen)
onBeforeUnmount(() => unregisterActionCallback(fullScreenCallbackId))
Expand Down

0 comments on commit 28370ae

Please sign in to comment.