From 1cb724acbd1db7e7a0ef638ebb2a9d6c9e2f1cb4 Mon Sep 17 00:00:00 2001 From: yuantao Date: Thu, 16 Oct 2025 10:52:07 +0800 Subject: [PATCH] =?UTF-8?q?\"fix:=20=E4=BF=AE=E5=A4=8DhandleTouchStart?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=B8=AD=E7=9A=84=E9=87=8D=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=92=8C=E5=87=BD=E6=95=B0=E9=97=AD=E5=90=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98\"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/RichTextEditor.vue | 38 ------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/components/RichTextEditor.vue b/src/components/RichTextEditor.vue index b525e53..e1cd4df 100644 --- a/src/components/RichTextEditor.vue +++ b/src/components/RichTextEditor.vue @@ -1064,44 +1064,6 @@ const handleTouchStart = (e) => { // 阻止页面滚动 e.preventDefault() } -} - - // 添加拖拽指示器 - const indicator = document.createElement('div') - indicator.className = 'drag-indicator' - indicator.style.position = 'fixed' - indicator.style.top = '50%' - indicator.style.left = '50%' - indicator.style.transform = 'translate(-50%, -50%)' - indicator.style.padding = '8px 16px' - indicator.style.background = 'rgba(0, 0, 0, 0.8)' - indicator.style.color = 'white' - indicator.style.borderRadius = '16px' - indicator.style.fontSize = '14px' - indicator.style.fontWeight = '500' - indicator.style.zIndex = '1000' - indicator.style.opacity = '0' - indicator.style.transition = 'opacity 0.15s ease-out' - indicator.textContent = '拖拽排序' - document.body.appendChild(indicator) - - // 渐显指示器 - setTimeout(() => { - indicator.style.opacity = '1' - }, 5) - - // 保存指示器引用以便后续移除 - dragState.value.indicator = indicator - - // 添加震动反馈(如果设备支持) - if (navigator.vibrate) { - navigator.vibrate(10) - } - }, 300) // 300毫秒长按触发拖拽 - - // 阻止页面滚动 - e.preventDefault() -} // 处理触摸移动事件 const handleTouchMove = (e) => {