From d468b2ce20977c9e052a871de038c0c26a53327d Mon Sep 17 00:00:00 2001 From: chenzhe Date: Thu, 5 Jan 2023 15:38:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20wheel=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E6=8C=89=E4=BD=8Fshift=E4=B8=8D=E6=8B=A6=E6=88=AA=E5=8E=9F?= =?UTF-8?q?=E7=94=9F=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/table/src/body.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/table/src/body.ts b/packages/table/src/body.ts index 1a2673188a..52bcd8ce7d 100644 --- a/packages/table/src/body.ts +++ b/packages/table/src/body.ts @@ -666,7 +666,8 @@ export default defineComponent({ const isRollY = scrollTop !== lastScrollTop // 用于鼠标纵向滚轮处理 - if (isRollY) { + // 如果按住了SHIFT,不拦截原生事件 https://github.com/x-extends/vxe-table/issues/1828 + if (isRollY && !evnt.shiftKey) { evnt.preventDefault() tableInternalData.lastScrollTop = scrollTop tableInternalData.lastScrollLeft = scrollLeft