aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/GameTab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/GameTab.cpp')
-rw-r--r--src/game_tab/GameTab.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game_tab/GameTab.cpp b/src/game_tab/GameTab.cpp
index 3326f12..743346b 100644
--- a/src/game_tab/GameTab.cpp
+++ b/src/game_tab/GameTab.cpp
@@ -45,6 +45,15 @@ GameTab::GameTab(wxFrame *parent, std::shared_ptr<Game> game)
}
ed->Notify();
});
+ Bind(wxEVT_MOUSEWHEEL, [p=this,bp=board_panel,ed=editor_panel](wxMouseEvent& event){
+ if(event.GetWheelRotation()<0){
+ bp->NextMove(true);
+ }else {
+ bp->PreviousMove(true);
+ }
+ ed->Notify();
+ });
+
}
void GameTab::OnToolClick(wxCommandEvent &event){