Fixing watefall panning with the left mouse button.

This commit is contained in:
Marat Fayzullin 2022-12-11 12:52:06 -05:00
parent 7b256de82f
commit 1fa9e497e8

View File

@ -579,10 +579,10 @@ var canvas_drag_start_x;
var canvas_drag_start_y; var canvas_drag_start_y;
function canvas_mousedown(evt) { function canvas_mousedown(evt) {
if (evt.button > 0) if (evt.button > 0) {
if (canvas_mouse2_down == 0) if (canvas_mouse2_down == 0)
canvas_mouse2_down = evt.button; canvas_mouse2_down = evt.button;
else { } else {
canvas_mouse_down = true; canvas_mouse_down = true;
canvas_drag = false; canvas_drag = false;
canvas_drag_last_x = canvas_drag_start_x = evt.pageX; canvas_drag_last_x = canvas_drag_start_x = evt.pageX;