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

restore paper-drawer-panel.html changes

This commit is contained in:
Luke Pulverenti 2016-03-04 22:43:47 -05:00
parent b447272b19
commit 017d0f0057

View file

@ -756,6 +756,12 @@ Custom property | Description | Default
} }
this._setPeeking(false); 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)); this._moveDrawer(this._translateXForDeltaX(dx));
} }
@ -770,10 +776,13 @@ Custom property | Description | Default
sharedPanel = null; sharedPanel = null;
this._moveDrawer(null); this._moveDrawer(null);
var dx = event.detail.dx;
var dy = event.detail.dy;
var absDy = Math.abs(dy);
if (this.rightDrawer) { if (this.rightDrawer) {
this[xDirection ? 'closeDrawer' : 'openDrawer'](); this[xDirection ? 'closeDrawer' : 'openDrawer']();
} else { } else {
this[xDirection ? 'openDrawer' : 'closeDrawer'](); this[xDirection || dx > -80 || absDy >= 70 ? 'openDrawer' : 'closeDrawer']();
} }
} }
}, },