From 1fa9e497e860841ab16799c047df509a11ec5f9c Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sun, 11 Dec 2022 12:52:06 -0500 Subject: [PATCH] Fixing watefall panning with the left mouse button. --- htdocs/openwebrx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 2bd88f2..9cce6e1 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -579,10 +579,10 @@ var canvas_drag_start_x; var canvas_drag_start_y; function canvas_mousedown(evt) { - if (evt.button > 0) + if (evt.button > 0) { if (canvas_mouse2_down == 0) canvas_mouse2_down = evt.button; - else { + } else { canvas_mouse_down = true; canvas_drag = false; canvas_drag_last_x = canvas_drag_start_x = evt.pageX;