[gpu] Middle-click to reset view

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 4.6 committed 2026-03-29 18:33:00 -06:00
1 parent 47f8f56bb8
commit fd465792c9
1 file changed
+4
+4
View File
@@ -471,6 +471,10 @@ demo_view_mouse_func (demo_view_t *vu, int button, int action, int mods)
break;
}
break;
case GLFW_MOUSE_BUTTON_MIDDLE:
if (action == GLFW_RELEASE && !vu->dragged)
demo_view_reset (vu);
break;
}
vu->beginx = vu->lastx = x;