mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-02-05 12:35:35 +00:00
keybinds: do not reset scroll timer on not passed
avoids endless lockups
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user