remove console.logs
This commit is contained in:
parent
725a47a799
commit
8d91c3a08d
|
@ -24,13 +24,11 @@
|
|||
export default {
|
||||
oncreate () {
|
||||
this.observe('innerHeight', throttle(innerHeight => {
|
||||
//console.log('setting innerHeight', innerHeight)
|
||||
this.store.set({
|
||||
innerHeight: innerHeight
|
||||
})
|
||||
}, THROTTLE_TIME))
|
||||
this.observe('items', (items) => {
|
||||
//console.log('setting items')
|
||||
this.store.set({
|
||||
'items': items
|
||||
})
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
export default {
|
||||
oncreate() {
|
||||
'VirtualListItem: oncreate'
|
||||
let itemHeights = this.store.get('itemHeights')
|
||||
let key = this.get('key')
|
||||
itemHeights[key] = this.refs.node.offsetHeight
|
||||
|
|
|
@ -22,7 +22,6 @@ virtualListStore.compute('visibleItems',
|
|||
let height = itemHeights[key] || 0
|
||||
let currentOffset = totalOffset
|
||||
totalOffset += height
|
||||
//console.log(key, 'scrollTop', scrollTop, 'currentOffset', currentOffset, 'innerHeight', innerHeight)
|
||||
let isBelowViewport = (currentOffset < scrollTop)
|
||||
if (isBelowViewport) {
|
||||
if (scrollTop - renderBuffer > currentOffset) {
|
||||
|
|
Loading…
Reference in New Issue