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

update polymer

This commit is contained in:
Luke Pulverenti 2015-10-07 21:49:40 -04:00
parent 8119b930e4
commit cbb6337b41
74 changed files with 2195 additions and 1393 deletions

View file

@ -125,33 +125,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
},
_eventSourceIsPrimaryInput: function(event) {
event = event.detail.sourceEvent || event;
// Always true for non-mouse events....
if (!this._mouseEventRe.test(event.type)) {
return true;
}
// http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
if ('buttons' in event) {
return event.buttons === 1;
}
// http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which
if (typeof event.which === 'number') {
return event.which < 2;
}
// http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
return event.button < 1;
},
_downHandler: function(event) {
if (!this._eventSourceIsPrimaryInput(event)) {
return;
}
this._setPointerDown(true);
this._setPressed(true);
this._setReceivedFocusFromKeyboard(false);