				y_value = i_y;
			}
			if(sy >= reset_scale_y && sy < reset_scale_y + buttons_h)
				scale_value = i_scale;
			if(sy >= snap_to_f_y && sy < snap_to_f_y + buttons_h)
				snap_focus_to_nearest();
			draw_canvas();
		} else if(mousedown_sx == mousemove_sx && mousedown_sy == mousemove_sy) {
			const functions = s2x_x2s_s2y_y2s();
			const s2x = functions[0];
			const s2y = functions[2];
			x_value = s2x(sx);
			y_value = s2y(sy);
			draw_canvas();
		}
	}, false);

	i_canvas.addEventListener('dblclick', func