fix: use absolute positioning over transform (#1850)
This commit is contained in:
parent
40e9b44adc
commit
55b9c8d3b8
|
@ -1,7 +1,7 @@
|
||||||
<div class="virtual-list-item list-item {shown ? 'shown' : ''}"
|
<div class="virtual-list-item list-item {shown ? 'shown' : ''}"
|
||||||
aria-hidden={!shown}
|
aria-hidden={!shown}
|
||||||
ref:node
|
ref:node
|
||||||
style="transform: translateY({offset}px);" >
|
style="top: {offset}px;" >
|
||||||
<svelte:component this={component}
|
<svelte:component this={component}
|
||||||
virtualProps={props}
|
virtualProps={props}
|
||||||
virtualIndex={index}
|
virtualIndex={index}
|
||||||
|
@ -13,7 +13,6 @@
|
||||||
.virtual-list-item {
|
.virtual-list-item {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
top: 0;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transition: opacity 0.2s linear;
|
transition: opacity 0.2s linear;
|
||||||
|
|
Loading…
Reference in New Issue