keybinds: do not reset scroll timer on not passed

avoids endless lockups
This commit is contained in:
Vaxry
2025-07-25 14:58:54 +02:00
parent 31cc7f3b87
commit fd0c1f2ab4

View File

@@ -519,10 +519,8 @@ bool CKeybindManager::onAxisEvent(const IPointer::SAxisEvent& e) {
static auto PDELAY = CConfigValue<Hyprlang::INT>("binds:scroll_event_delay");
if (m_scrollTimer.getMillis() < *PDELAY) {
m_scrollTimer.reset();
if (m_scrollTimer.getMillis() < *PDELAY)
return true; // timer hasn't passed yet!
}
m_scrollTimer.reset();