From 028e99458aa28df1fea55492e8d9d3835f628623 Mon Sep 17 00:00:00 2001 From: wxm <157215725@qq.com> Date: Sun, 1 Dec 2024 20:51:50 +0800 Subject: [PATCH] fix: judgment error in copyScrollbar (link #120) --- src/clone-node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clone-node.ts b/src/clone-node.ts index 5df91a8..ee745ef 100644 --- a/src/clone-node.ts +++ b/src/clone-node.ts @@ -177,7 +177,7 @@ export async function cloneNode( if (context.isEnable('copyScrollbar')) { const overflow = [ style.get('overflow-x')?.[0], - style.get('overflow-y')?.[1], + style.get('overflow-y')?.[0], ] copyScrollbar = (overflow.includes('scroll')) || (