diff --git a/src/demo/Backgrounds/GridDistortionDemo.vue b/src/demo/Backgrounds/GridDistortionDemo.vue index ed37231..208e714 100644 --- a/src/demo/Backgrounds/GridDistortionDemo.vue +++ b/src/demo/Backgrounds/GridDistortionDemo.vue @@ -11,42 +11,15 @@ :relaxation="0.9" className="grid-distortion" /> -

Distortion.

- - +

+ Distortion. +

- + - + @@ -80,30 +53,17 @@ const { rerenderKey: key, forceRerender } = useForceRerender(); const grid = ref(10); const mouse = ref(0.25); -const isFullScreen = ref(false); const containerRef = ref(null); watch( - () => [grid, mouse, isFullScreen], + () => [grid, mouse], () => { forceRerender(); }, { deep: true } ); -const enterFullScreen = () => { - if (containerRef.value) { - containerRef.value.requestFullscreen().then(() => (isFullScreen.value = true)); - } -}; - -const exitFullScreen = () => { - if (document.fullscreenElement) { - document.exitFullscreen().then(() => (isFullScreen.value = false)); - } -}; - const propData = [ { name: 'imgageSrc', @@ -143,3 +103,9 @@ const propData = [ } ]; + +