mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-28 18:51:54 -07: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");
|
static auto PDELAY = CConfigValue<Hyprlang::INT>("binds:scroll_event_delay");
|
||||||
|
|
||||||
if (m_scrollTimer.getMillis() < *PDELAY) {
|
if (m_scrollTimer.getMillis() < *PDELAY)
|
||||||
m_scrollTimer.reset();
|
|
||||||
return true; // timer hasn't passed yet!
|
return true; // timer hasn't passed yet!
|
||||||
}
|
|
||||||
|
|
||||||
m_scrollTimer.reset();
|
m_scrollTimer.reset();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user