Annotate hacky math

pull/21833/head
Travis Ralston 2020-06-04 21:45:32 -06:00
parent e90e70bd77
commit 1f11298aa3
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
handles = []; // no handles, we're at a minimum
}
// TODO: Remove Math hacks
let nVisible = Math.floor(layout.visibleTiles);
if (localStorage.getItem("mx_rl_mathfn")) {
nVisible = Math[localStorage.getItem("mx_rl_mathfn")](layout.visibleTiles);