mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
fix scrolling issue with large font
This commit is contained in:
parent
a8d160f9b1
commit
2a5692d9a7
@ -437,8 +437,12 @@ var vm = new Vue({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
itemListCloseToBottom: function() {
|
itemListCloseToBottom: function() {
|
||||||
|
// approx. vertical space at the bottom of the list (loading el & paddings) when 1rem = 16px
|
||||||
|
var bottomSpace = 70
|
||||||
|
var scale = (parseFloat(getComputedStyle(document.documentElement).fontSize) || 16) / 16
|
||||||
|
|
||||||
var el = this.$refs.itemlist
|
var el = this.$refs.itemlist
|
||||||
var closeToBottom = (el.scrollHeight - el.scrollTop - el.offsetHeight) < 50
|
var closeToBottom = (el.scrollHeight - el.scrollTop - el.offsetHeight) < bottomSpace * scale
|
||||||
return closeToBottom
|
return closeToBottom
|
||||||
},
|
},
|
||||||
loadMoreItems: function(event, el) {
|
loadMoreItems: function(event, el) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user