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