1
0
forked from 0ad/0ad

Fixes gamesetup slider for a too short frame time (not enough Date precision).

Patch By: nwtour
Differential Revision: https://code.wildfiregames.com/D4365
This was SVN commit r26079.
This commit is contained in:
Vladislav Belov 2021-12-15 10:56:20 +00:00
parent eb004e5c98
commit 2f4fabdd96

View File

@ -58,7 +58,7 @@ class GameSettingsPanel
if (previousTime === undefined)
return;
let distance = this.slideSpeed * tickLength;
const distance = this.slideSpeed * (tickLength || 1);
let rightBorder = this.settingTabButtonsFrame.size.left;
let offset = 0;
if (g_TabCategorySelected === undefined)