From 2eac1e3d3ece90d1c522e15cb57ee41baa3dd822 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 9 May 2021 17:30:53 +0200 Subject: Disable navigation when input is enabled --- src/QuickMedia.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 6a7bc5f..112ec77 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3080,7 +3080,7 @@ namespace QuickMedia { while (current_page == PageType::IMAGE_BOARD_THREAD && window.isOpen()) { while (window.pollEvent(event)) { if(navigation_stage == NavigationStage::REPLYING || navigation_stage == NavigationStage::VIEWING_COMMENTS) { - if(thread_body->on_event(window, event)) + if(thread_body->on_event(window, event, navigation_stage == NavigationStage::VIEWING_COMMENTS)) idle_active_handler(); } @@ -4784,7 +4784,7 @@ namespace QuickMedia { if(url_selection_body.on_event(window, event)) idle_active_handler(); } else { - if(tabs[selected_tab].body->on_event(window, event)) + if(tabs[selected_tab].body->on_event(window, event, chat_state == ChatState::NAVIGATING)) idle_active_handler(); } -- cgit v1.2.3