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

apply suggeustion

This commit is contained in:
grafixeyehero 2020-01-23 20:30:35 +03:00
parent 0c9ae31417
commit 2c4cc578ca

View file

@ -117,14 +117,12 @@ define(["browser", "dom", "css!./navdrawer", "scrollStyles"], function (browser,
if (countStart == 1) { if (countStart == 1) {
startPoint = deltaX; startPoint = deltaX;
} }
if (deltaX < 0) { if (deltaX < 0 && dragMode !== 2) {
if (dragMode !== 2) { dragMode = 1;
dragMode = 1; newPos = deltaX - startPoint + options.width;
newPos = deltaX - startPoint + options.width; self.changeMenuPos();
self.changeMenuPos(); var time = new Date().getTime() - (backgroundTouchStartTime || 0);
var time = new Date().getTime() - (backgroundTouchStartTime || 0); velocity = Math.abs(deltaX) / time;
velocity = Math.abs(deltaX) / time;
}
} }
} }