@@ -62,16 +62,16 @@ afterEach(() => {
62
62
63
63
64
64
// Halloween background animation
65
- const mouse = ref ({ x: 0 , y: 0 })
66
- const mouseInertia = ref ({ x: 0 , y: 0 })
67
-
68
- const onMouseMove = (e : MouseEvent ) => {
69
- mouse .value = { x: e .clientX , y: e .clientY }
70
- mouseInertia .value = {
71
- x: mouseInertia .value .x * 0.9 + (mouse .value .x - mouseInertia .value .x ) * 0.1 ,
72
- y: mouseInertia .value .y * 0.9 + (mouse .value .y - mouseInertia .value .y ) * 0.1 ,
73
- }
74
- }
65
+ // const mouse = ref({ x: 0, y: 0 })
66
+ // const mouseInertia = ref({ x: 0, y: 0 })
67
+
68
+ // const onMouseMove = (e: MouseEvent) => {
69
+ // mouse.value = { x: e.clientX, y: e.clientY }
70
+ // mouseInertia.value = {
71
+ // x: mouseInertia.value.x * 0.9 + (mouse.value.x - mouseInertia.value.x) * 0.1,
72
+ // y: mouseInertia.value.y * 0.9 + (mouse.value.y - mouseInertia.value.y) * 0.1,
73
+ // }
74
+ // }
75
75
76
76
onMounted (() => {
77
77
isSidebarVisible .value = ! breakpoints .smDown
@@ -87,22 +87,22 @@ onMounted(() => {
87
87
currentPresetName .value = window .matchMedia (' (prefers-color-scheme: dark)' ).matches ? ' dark' : ' light'
88
88
}
89
89
90
- window .addEventListener (' mousemove' , onMouseMove )
90
+ // window.addEventListener('mousemove', onMouseMove)
91
91
92
- const resetInertia = () => {
93
- mouseInertia .value = {
94
- x: mouseInertia .value .x * 0.9 + - 1 * 0.1 ,
95
- y: mouseInertia .value .y * 0.9 + - 1 * 0.1 ,
96
- }
97
- requestAnimationFrame (resetInertia )
98
- }
92
+ // const resetInertia = () => {
93
+ // mouseInertia.value = {
94
+ // x: mouseInertia.value.x * 0.9 + -1 * 0.1,
95
+ // y: mouseInertia.value.y * 0.9 + -1 * 0.1,
96
+ // }
97
+ // requestAnimationFrame(resetInertia)
98
+ // }
99
99
100
- requestAnimationFrame (resetInertia )
100
+ // requestAnimationFrame(resetInertia)
101
101
})
102
102
103
- onUnmounted (() => {
104
- window .removeEventListener (' mousemove' , onMouseMove )
105
- })
103
+ // onUnmounted(() => {
104
+ // window.removeEventListener('mousemove', onMouseMove)
105
+ // })
106
106
107
107
useHead ({
108
108
link: [
0 commit comments