mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sync process
This commit is contained in:
parent
cc428aac1d
commit
504384e83d
109 changed files with 553 additions and 289 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-tabs",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Material design tabs",
|
||||
"private": true,
|
||||
|
@ -39,11 +39,11 @@
|
|||
"web-component-tester": "*"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/paper-tabs",
|
||||
"_release": "1.0.2",
|
||||
"_release": "1.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.2",
|
||||
"commit": "61abed79e3c4e7c87dd826f7f81ef9c7ecb5df78"
|
||||
"tag": "v1.0.3",
|
||||
"commit": "19546ca9fbe23da457177cac8de1a7720cb62c57"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-tabs.git",
|
||||
"_target": "~1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-tabs",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Material design tabs",
|
||||
"private": true,
|
||||
|
|
|
@ -174,7 +174,7 @@ Custom property | Description | Default
|
|||
|
||||
<paper-icon-button icon="paper-tabs:chevron-left" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown"></paper-icon-button>
|
||||
|
||||
<div id="tabsContainer" class="flex" on-scroll="_scroll">
|
||||
<div id="tabsContainer" class="flex" on-track="_scroll" on-down="_down">
|
||||
|
||||
<div id="tabsContent" class$="[[_computeTabsContentClass(scrollable)]]">
|
||||
|
||||
|
@ -310,6 +310,10 @@ Custom property | Description | Default
|
|||
'iron-deselect': '_onIronDeselect'
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
this.setScrollDirection('y', this.$.tabsContainer);
|
||||
},
|
||||
|
||||
_computeScrollButtonClass: function(hideThisButton, scrollable, hideScrollButtons) {
|
||||
if (!scrollable || hideScrollButtons) {
|
||||
return 'hidden';
|
||||
|
@ -364,24 +368,43 @@ Custom property | Description | Default
|
|||
);
|
||||
},
|
||||
|
||||
_scroll: function() {
|
||||
var scrollLeft;
|
||||
|
||||
_scroll: function(e, detail) {
|
||||
if (!this.scrollable) {
|
||||
return;
|
||||
}
|
||||
|
||||
scrollLeft = this.$.tabsContainer.scrollLeft;
|
||||
var ddx = (detail && -detail.ddx) || 0;
|
||||
this._affectScroll(ddx);
|
||||
},
|
||||
|
||||
_down: function(e) {
|
||||
// go one beat async to defeat IronMenuBehavior
|
||||
// autorefocus-on-no-selection timeout
|
||||
this.async(function() {
|
||||
if (this._defaultFocusAsync) {
|
||||
this.cancelAsync(this._defaultFocusAsync);
|
||||
this._defaultFocusAsync = null;
|
||||
}
|
||||
}, 1);
|
||||
},
|
||||
|
||||
_affectScroll: function(dx) {
|
||||
this.$.tabsContainer.scrollLeft += dx;
|
||||
|
||||
var scrollLeft = this.$.tabsContainer.scrollLeft;
|
||||
|
||||
this._leftHidden = scrollLeft === 0;
|
||||
this._rightHidden = scrollLeft === this._tabContainerScrollSize;
|
||||
},
|
||||
|
||||
_onLeftScrollButtonDown: function() {
|
||||
this._scrollToLeft();
|
||||
this._holdJob = setInterval(this._scrollToLeft.bind(this), this._holdDelay);
|
||||
},
|
||||
|
||||
_onRightScrollButtonDown: function() {
|
||||
this._scrollToRight();
|
||||
this._holdJob = setInterval(this._scrollToRight.bind(this), this._holdDelay);
|
||||
},
|
||||
|
||||
|
@ -391,11 +414,11 @@ Custom property | Description | Default
|
|||
},
|
||||
|
||||
_scrollToLeft: function() {
|
||||
this.$.tabsContainer.scrollLeft -= this._step;
|
||||
this._affectScroll(-this._step);
|
||||
},
|
||||
|
||||
_scrollToRight: function() {
|
||||
this.$.tabsContainer.scrollLeft += this._step;
|
||||
this._affectScroll(this._step);
|
||||
},
|
||||
|
||||
_tabChanged: function(tab, old) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue