mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
update unveil
This commit is contained in:
parent
41029f9004
commit
f493fac2c1
@ -21,15 +21,12 @@
|
|||||||
* only accounts for vertical position, not horizontal.
|
* only accounts for vertical position, not horizontal.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var thresholdX = Math.max(screen.availWidth);
|
var thresholdX = screen.availWidth || 0;
|
||||||
var thresholdY = Math.max(screen.availHeight);
|
var thresholdY = screen.availHeight || 0;
|
||||||
var wheelEvent = (document.implementation.hasFeature('Event.wheel', '3.0') ? 'wheel' : 'mousewheel');
|
var wheelEvent = (document.implementation.hasFeature('Event.wheel', '3.0') ? 'wheel' : 'mousewheel');
|
||||||
|
|
||||||
function visibleInViewport(elem, partial) {
|
function visibleInViewport(elem, partial) {
|
||||||
|
|
||||||
thresholdX = thresholdX || 0;
|
|
||||||
thresholdY = thresholdY || 0;
|
|
||||||
|
|
||||||
var vpWidth = window.innerWidth,
|
var vpWidth = window.innerWidth,
|
||||||
vpHeight = window.innerHeight;
|
vpHeight = window.innerHeight;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user