Skip to content

Commit

Permalink
move event loop processing, scroll events were getting lost
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Mar 14, 2024
1 parent 5293106 commit 9df7683
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/polyscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ void draw(bool withUI, bool withContextCallback) {

if (withUI) {
render::engine->ImGuiNewFrame();

processInputEvents();
view::updateFlight();
showDelayedWarnings();
}

// Build the GUI components
Expand Down Expand Up @@ -863,9 +867,6 @@ void mainLoopIteration() {

// Process UI events
render::engine->pollEvents();
processInputEvents();
view::updateFlight();
showDelayedWarnings();

// Housekeeping
purgeWidgets();
Expand Down

0 comments on commit 9df7683

Please sign in to comment.