src/main_gui.cpp
changeset 6654 31d17823506f
parent 6626 207875b9069a
child 6666 41ceafa4c85e
equal deleted inserted replaced
6653:b20fcfed0847 6654:31d17823506f
  2423 			if (vp == NULL) {
  2423 			if (vp == NULL) {
  2424 				_cursor.fix_at = false;
  2424 				_cursor.fix_at = false;
  2425 				_scrolling_viewport = false;
  2425 				_scrolling_viewport = false;
  2426 			}
  2426 			}
  2427 
  2427 
  2428 			WP(w, vp_d).scrollpos_x += e->we.scroll.delta.x << vp->zoom;
  2428 			WP(w, vp_d).scrollpos_x += ScaleByZoom(e->we.scroll.delta.x, vp->zoom);
  2429 			WP(w, vp_d).scrollpos_y += e->we.scroll.delta.y << vp->zoom;
  2429 			WP(w, vp_d).scrollpos_y += ScaleByZoom(e->we.scroll.delta.y, vp->zoom);
  2430 		} break;
  2430 		} break;
  2431 
  2431 
  2432 		case WE_MOUSEWHEEL:
  2432 		case WE_MOUSEWHEEL:
  2433 			ZoomInOrOutToCursorWindow(e->we.wheel.wheel < 0, w);
  2433 			ZoomInOrOutToCursorWindow(e->we.wheel.wheel < 0, w);
  2434 			break;
  2434 			break;