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