aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-09 17:30:53 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-09 17:30:53 +0200
commit2eac1e3d3ece90d1c522e15cb57ee41baa3dd822 (patch)
treeda92c57d784fab6ecea3a45624fbce06dea2aef9
parentf6a07804546cb0ee0e1a243929dbe7ec25214c9e (diff)
Disable navigation when input is enabled
-rw-r--r--src/QuickMedia.cpp4
1 files 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();
}