mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update scrollthreshold.js
This commit is contained in:
parent
727a2e09f2
commit
049bc4aeac
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
function getScrollSize() {
|
||||
|
||||
if (!scrollSize) {
|
||||
scrollSize = horizontal ? (elem.scrollWidth - elem.clientWidth) : (elem.scrollHeight - elem.clientHeight);
|
||||
scrollSize = horizontal ? (elem.scrollWidth - elem.clientWidth) : (elem.scrollHeight - elem.offsetHeight);
|
||||
}
|
||||
return scrollSize;
|
||||
}
|
||||
|
@ -28,6 +28,8 @@
|
|||
|
||||
var position = horizontal ? elem.scrollLeft : elem.scrollTop;
|
||||
|
||||
//console.log('onscroll: ' + position + '-' + getScrollSize());
|
||||
|
||||
// Detect upper threshold
|
||||
if (!upperTriggered && position < upperTolerance) {
|
||||
upperTriggered = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue