forked from cybrespace/pinafore
Revert "use rIC to keep scrolling smooth"
This reverts commit fc8554bed3
.
This commit is contained in:
parent
8c8c6bab25
commit
9c6b8a7a8e
|
@ -14,7 +14,6 @@
|
||||||
<script>
|
<script>
|
||||||
import PseudoVirtualListItem from './PseudoVirtualListItem.html'
|
import PseudoVirtualListItem from './PseudoVirtualListItem.html'
|
||||||
import { mark, stop } from '../../_utils/marks'
|
import { mark, stop } from '../../_utils/marks'
|
||||||
import { scheduleIdleTask } from '../../_utils/scheduleIdleTask'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
async oncreate() {
|
async oncreate() {
|
||||||
|
@ -24,7 +23,7 @@
|
||||||
let key = this.get('key')
|
let key = this.get('key')
|
||||||
if (makeProps) {
|
if (makeProps) {
|
||||||
let props = await makeProps(key)
|
let props = await makeProps(key)
|
||||||
scheduleIdleTask(() => { // delay to avoid slow scrolling
|
requestAnimationFrame(() => { // delay slightly to avoid slow scrolling
|
||||||
mark('PseudoVirtualListLazyItem set props')
|
mark('PseudoVirtualListLazyItem set props')
|
||||||
this.set({props: props})
|
this.set({props: props})
|
||||||
stop('PseudoVirtualListLazyItem set props')
|
stop('PseudoVirtualListLazyItem set props')
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
<script>
|
<script>
|
||||||
import VirtualListItem from './VirtualListItem'
|
import VirtualListItem from './VirtualListItem'
|
||||||
import { mark, stop } from '../../_utils/marks'
|
import { mark, stop } from '../../_utils/marks'
|
||||||
import { scheduleIdleTask } from '../../_utils/scheduleIdleTask'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
async oncreate() {
|
async oncreate() {
|
||||||
|
@ -19,7 +18,7 @@
|
||||||
let key = this.get('key')
|
let key = this.get('key')
|
||||||
if (makeProps) {
|
if (makeProps) {
|
||||||
let props = await makeProps(key)
|
let props = await makeProps(key)
|
||||||
scheduleIdleTask(() => { // delay to avoid slow scrolling
|
requestAnimationFrame(() => { // delay slightly to avoid slow scrolling
|
||||||
mark('VirtualListLazyItem set props')
|
mark('VirtualListLazyItem set props')
|
||||||
this.set({props: props})
|
this.set({props: props})
|
||||||
stop('VirtualListLazyItem set props')
|
stop('VirtualListLazyItem set props')
|
||||||
|
|
Loading…
Reference in New Issue