summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/play.js b/play.js
index 6838700..c113f9b 100644
--- a/play.js
+++ b/play.js
@@ -534,6 +534,9 @@ function layout_tst_marker(e, v, top) {
function layout_vp_marker() {
let x, y
+
+ if (view.vp > 21) { view.vp = 21 }
+ if (view.vp < -21) { view.vp = -21 }
if (view.vp === 0) {
y = 2425 + 25
x = 843 + 28