Revert "use rIC to keep scrolling smooth"

This reverts commit fc8554bed3.
This commit is contained in:
Nolan Lawson 2018-03-15 10:25:02 -07:00
parent 8c8c6bab25
commit 9c6b8a7a8e
2 changed files with 2 additions and 4 deletions

View File

@ -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')

View File

@ -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')