private void left_click_Handler() { if (MouseUtilities.GetAsyncKeyState(MouseUtilities.VK_LEFTBUTTON) != 0) { #region if (minimap_move_mode == true) { Point p = MouseUtilities.CorrectGetPosition(minimap_image); int mx = (int)p.X; int my = (int)p.Y; int x = mx / pixel_size - (int)view_rect.Width / 2; int y = my / pixel_size - (int)view_rect.Height / 2; int size_zoomCell = (int)(32 * Gl.main.uiScaleSlider.Value); Gl.main.move_scrols_to(x * size_zoomCell, y * size_zoomCell); } #endregion } else { #region on_left_click_Timer.AutoReset = false; on_left_click_Timer.Stop(); minimap_move_mode = false; #endregion } }