mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 05:10:20 +01:00
keybinds: do not reset scroll timer on not passed
avoids endless lockups
This commit is contained in:
parent
31cc7f3b87
commit
fd0c1f2ab4
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue