MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / viewportDragBegin

Function viewportDragBegin

src/OpenLoco/src/Input/MouseInput.cpp:1468–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466#pragma mark - Viewport dragging
1467
1468 static void viewportDragBegin(Window* w)
1469 {
1470 w->flags &= ~Ui::WindowFlags::scrollingToLocation;
1471 state(State::viewportRight);
1472 _dragWindowType = w->type;
1473 _dragWindowNumber = w->number;
1474 _ticksSinceDragStart = 0;
1475 }
1476
1477#pragma mark - Scrollview dragging
1478

Callers 1

stateNormalRightFunction · 0.85

Calls 1

stateFunction · 0.50

Tested by

no test coverage detected