We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4534f99 commit 61bbd91Copy full SHA for 61bbd91
src/framebuffer/FramebufferExample.cpp
@@ -112,6 +112,8 @@ void FramebufferExample::mousePressEvent(MouseEvent& event) {
112
}
113
114
void FramebufferExample::mouseMoveEvent(MouseMoveEvent& event) {
115
+ if(!event.buttons()) return;
116
+
117
billboard->translate(camera->projectionSize()*Vector2(event.position()-previous)/Vector2(camera->viewport())*Vector2(2.0f, -2.0f));
118
previous = event.position();
119
redraw();
0 commit comments