mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
[gpu] Middle-click to reset view
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
47f8f56bb8
commit
fd465792c9
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user