mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update events
This commit is contained in:
parent
08c6ef7935
commit
0e0fa54547
17 changed files with 140 additions and 141 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['browser', 'css!./emby-button', 'registerElement'], function (browser) {
|
||||
define(['browser', 'dom', 'css!./emby-button', 'registerElement'], function (browser, dom) {
|
||||
|
||||
var EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
|
||||
|
||||
|
@ -55,8 +55,12 @@
|
|||
this.classList.add('paper-icon-button-light');
|
||||
|
||||
if (enableAnimation()) {
|
||||
this.addEventListener('keydown', onKeyDown);
|
||||
this.addEventListener('click', animateButton);
|
||||
dom.addEventListener(this, 'keydown', onKeyDown, {
|
||||
passive: true
|
||||
});
|
||||
dom.addEventListener(this, 'click', animateButton, {
|
||||
passive: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue