Skip to content

Commit

Permalink
fix: ensure offset after zoom change
Browse files Browse the repository at this point in the history
  • Loading branch information
buxx committed Aug 12, 2023
1 parent c6ac268 commit 2e36034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions battle_gui/src/engine/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ impl GuiState {
//
self.zoom = scale.clone();
self.set_scene_offset_to(ctx, point);
self.ensure_correct_scene_offset(ctx);
}
GuiStateMessage::SetControl(new_control) => {
//
Expand Down

0 comments on commit 2e36034

Please sign in to comment.