mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] CardFeedDeck display more card if scrolled on page load
This commit is contained in:
parent
22c72ad7ec
commit
f40c266f3a
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ export default {
|
|||
return prev.parentElement === this.$refs.feed ? prev : this.getTopParent(prev.parentElement)
|
||||
},
|
||||
|
||||
onScroll (e) {
|
||||
onScroll () {
|
||||
const elem = this.$refs.feed
|
||||
if (window.innerHeight > elem.clientHeight + elem.getBoundingClientRect().top - 200) {
|
||||
this.busy = true
|
||||
|
@ -50,6 +50,7 @@ export default {
|
|||
mounted () {
|
||||
window.addEventListener('scroll', this.onScroll)
|
||||
this.$refs.feed.addEventListener('keydown', this.onKeydown)
|
||||
this.onScroll()
|
||||
},
|
||||
|
||||
beforeUpdate () {
|
||||
|
|
Loading…
Reference in a new issue