1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-10-06 00:28:10 -04:00
parent be99ee04d2
commit 86a369b500
20 changed files with 149 additions and 73 deletions

View file

@ -31,9 +31,8 @@
}, false);
}
function animateButton(e) {
function animateButton(e, btn) {
var btn = this;
requestAnimationFrame(function () {
animateButtonInternal(e, btn);
});
@ -42,17 +41,22 @@
function onKeyDown(e) {
if (e.keyCode === 13) {
animateButton.call(this, e);
animateButton(e, this);
}
}
function onMouseDown(e) {
if (e.button === 0) {
animateButton.call(this, e);
animateButton(e, this);
}
}
function onClick(e) {
animateButton(e, this);
}
function enableAnimation() {
if (browser.tv) {
// too slow
@ -78,7 +82,7 @@
passive: true
});
if (browser.safari) {
dom.addEventListener(this, 'click', animateButton, {
dom.addEventListener(this, 'click', onClick, {
passive: true
});
} else {