summaryrefslogtreecommitdiff
path: root/src/editor
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-25 14:45:28 +0100
committeraura <nw@moneybot.cc>2026-02-25 14:45:28 +0100
commitb384930de5044934207d1b2ceb4fa55705094f8b (patch)
tree7937d3382e83ead2db1851b4a02b8378d02ac150 /src/editor
parentcabe4471c309b2bba3be78b8346c9007485b1d57 (diff)
movement stuff + fix map zoom when dragging
Diffstat (limited to 'src/editor')
-rw-r--r--src/editor/view2d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/editor/view2d.cpp b/src/editor/view2d.cpp
index ee7e4d7..4498248 100644
--- a/src/editor/view2d.cpp
+++ b/src/editor/view2d.cpp
@@ -747,6 +747,8 @@ void gui_editor_2dview_input_scroll( GUI_EDITOR_2DVIEW* view ) {
VEC2 world_after = gui_editor_2dview_screen_to_world( view, mx, my );
view->posx += world_before.x - world_after.x;
view->posy += world_before.y - world_after.y;
+
+ view->dragheld = 0;
}
void gui_editor_2dview_input_tool_wall( GUI_EDITOR_2DVIEW* view ) {