mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggeustion
This commit is contained in:
parent
0c9ae31417
commit
2c4cc578ca
1 changed files with 6 additions and 8 deletions
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue