mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
apply suggustion
This commit is contained in:
parent
a28596dc6f
commit
0c9ae31417
@ -114,7 +114,11 @@ define(["browser", "dom", "css!./navdrawer", "scrollStyles"], function (browser,
|
||||
countStart++;
|
||||
var deltaX = endX - (backgroundTouchStartX || 0);
|
||||
|
||||
if (1 === countStart && (startPoint = deltaX), deltaX < 0 && 2 !== dragMode) {
|
||||
if (countStart == 1) {
|
||||
startPoint = deltaX;
|
||||
}
|
||||
if (deltaX < 0) {
|
||||
if (dragMode !== 2) {
|
||||
dragMode = 1;
|
||||
newPos = deltaX - startPoint + options.width;
|
||||
self.changeMenuPos();
|
||||
@ -122,6 +126,7 @@ define(["browser", "dom", "css!./navdrawer", "scrollStyles"], function (browser,
|
||||
velocity = Math.abs(deltaX) / time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@ -262,6 +267,7 @@ define(["browser", "dom", "css!./navdrawer", "scrollStyles"], function (browser,
|
||||
};
|
||||
|
||||
TouchMenuLA.prototype.hideMask = function () {
|
||||
mask.classList.add("hide");
|
||||
mask.classList.remove("backdrop");
|
||||
};
|
||||
|
||||
|
@ -9,7 +9,8 @@ define(["loading", "libraryMenu", "globalize", "emby-checkbox", "emby-select"],
|
||||
var validationResult = getValidationAlert(form);
|
||||
|
||||
if (validationResult) {
|
||||
return void alertText(validationResult);
|
||||
alertText(validationResult);
|
||||
return;
|
||||
}
|
||||
|
||||
validateHttps(form).then(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user