fix: use absolute positioning over transform (#1850)

This commit is contained in:
Nolan Lawson 2020-08-29 19:19:24 -07:00 committed by GitHub
parent 40e9b44adc
commit 55b9c8d3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<div class="virtual-list-item list-item {shown ? 'shown' : ''}"
aria-hidden={!shown}
ref:node
style="transform: translateY({offset}px);" >
style="top: {offset}px;" >
<svelte:component this={component}
virtualProps={props}
virtualIndex={index}
@ -13,7 +13,6 @@
.virtual-list-item {
position: absolute;
width: 100%;
top: 0;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s linear;