update playlist's timer while scrolling with fancy_scrolling disabled
not updating it caused highlight to be disabled during scrolling if key was being held long enough.
This commit is contained in:
@@ -241,6 +241,12 @@ void Playlist::SpacePressed()
|
||||
}
|
||||
}
|
||||
|
||||
void Playlist::ReadKey(int &key)
|
||||
{
|
||||
w->ReadKey(key);
|
||||
UpdateTimer();
|
||||
}
|
||||
|
||||
void Playlist::MouseButtonPressed(MEVENT me)
|
||||
{
|
||||
if (w == Items && !Items->Empty() && Items->hasCoords(me.x, me.y))
|
||||
|
||||
@@ -40,6 +40,7 @@ class Playlist : public Screen<Window>
|
||||
|
||||
virtual void EnterPressed();
|
||||
virtual void SpacePressed();
|
||||
virtual void ReadKey(int &);
|
||||
virtual void MouseButtonPressed(MEVENT);
|
||||
virtual bool isTabbable() { return true; }
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ template <typename WindowType> void Screen<WindowType>::Scroll(Where where, cons
|
||||
TraceMpdStatus();
|
||||
w->Scroll(where);
|
||||
w->Refresh();
|
||||
w->ReadKey(in);
|
||||
ReadKey(in);
|
||||
}
|
||||
w->SetTimeout(ncmpcpp_window_timeout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user