summaryrefslogtreecommitdiff
path: root/src/editor
diff options
context:
space:
mode:
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 ) {