From 5fd2410968cfddeed1e2bd3d6442781579491541 Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Wed, 19 Jul 2023 21:47:31 +0800 Subject: [PATCH] chore: no drag --- components/Parallax.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/Parallax.vue b/components/Parallax.vue index e9315d7..99973e5 100644 --- a/components/Parallax.vue +++ b/components/Parallax.vue @@ -11,6 +11,7 @@ const targetStyle: CSSProperties = { display: 'flex', flexDirection: 'column', justifyContent: 'center', + userSelect: 'none', transition: '.3s ease-out all', } const cardWindowStyle: CSSProperties = { @@ -25,6 +26,8 @@ const cardWindowStyle: CSSProperties = { } const layerBase: CSSProperties = { position: 'absolute', + userSelect: 'none', + "-webkit-user-drag": "none", height: '100%', width: '100%', transition: '.3s ease-out all',