Skip to content

Commit

Permalink
fix: judgment error in copyScrollbar (link #120)
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed Dec 1, 2024
1 parent dadebf7 commit 028e994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clone-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export async function cloneNode<T extends Node>(
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'))
|| (
Expand Down

0 comments on commit 028e994

Please sign in to comment.