From 6911443514135896a8bda0a28ff3a03ddaca9f3b Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 14 Nov 2024 17:50:54 +0000 Subject: Fix VP marker going off screen --- play.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'play.js') 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 -- cgit v1.2.3