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

add back polymer changes

This commit is contained in:
Luke Pulverenti 2015-07-09 23:19:14 -04:00
parent 319d838d6e
commit 5cc8cf839a
3 changed files with 34 additions and 8 deletions

View file

@ -368,6 +368,7 @@ To change the drawer container when it's in the right side:
*/
openDrawer: function() {
this.selected = 'drawer';
this.fire('paper-drawer-panel-open');
},
/**
@ -376,7 +377,8 @@ To change the drawer container when it's in the right side:
* @method closeDrawer
*/
closeDrawer: function() {
this.selected = 'main';
this.selected = 'main';
this.fire('paper-drawer-panel-close');
},
ready: function() {
@ -554,6 +556,13 @@ To change the drawer container when it's in the right side:
this._setPeeking(false);
}
var dy = event.detail.dy;
var absDy = Math.abs(dy);
if (absDy >= 70) {
// Ignore trackx until we move past the edge peek.
return;
}
this._moveDrawer(this._translateXForDeltaX(dx));
}
},
@ -567,10 +576,13 @@ To change the drawer container when it's in the right side:
sharedPanel = null;
this._moveDrawer(null);
var dx = event.detail.dx;
var dy = event.detail.dy;
var absDy = Math.abs(dy);
if (this.rightDrawer) {
this[xDirection ? 'closeDrawer' : 'openDrawer']();
this[xDirection ? 'closeDrawer' : 'openDrawer']();
} else {
this[xDirection ? 'openDrawer' : 'closeDrawer']();
this[xDirection || dx > -80 || absDy >= 70 ? 'openDrawer' : 'closeDrawer']();
}
}
},