Try variable resizing

This commit is contained in:
Travis Ralston 2020-06-04 09:19:03 -06:00
parent 30027a6556
commit 83df79aab9
2 changed files with 7 additions and 2 deletions

View file

@ -57,6 +57,10 @@ export class ListLayout {
return n * this.tileHeight;
}
public pixelsToTiles(px: number): number {
return px / this.tileHeight;
}
private serialize(): ISerializedListLayout {
return {
numTiles: this.visibleTiles,