From b84129b9f2128cd4aa2b1cccbe591134cdfb06a4 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Fri, 5 Aug 2022 22:48:54 -0500 Subject: [PATCH] calculated scroll interval --- squarenotsquare/src/themes/Metrics.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/squarenotsquare/src/themes/Metrics.js b/squarenotsquare/src/themes/Metrics.js index 95ac0ae..f12b1e1 100644 --- a/squarenotsquare/src/themes/Metrics.js +++ b/squarenotsquare/src/themes/Metrics.js @@ -44,7 +44,8 @@ class AppMetrics { this.margins = { default: this.normalize(5), - buttonMargin: this.normalize(20) + buttonMargin: this.normalize(20), + gameStartMargin: this.normalize(30) } this.buttons = { @@ -59,6 +60,10 @@ class AppMetrics { } } + this.animated = { + gameScrollInterval: (this.answerButtonHeight + (this.buttonMargin * 2)) + } + this.borders = { width: 1 }