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)
|
void Playlist::MouseButtonPressed(MEVENT me)
|
||||||
{
|
{
|
||||||
if (w == Items && !Items->Empty() && Items->hasCoords(me.x, me.y))
|
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 EnterPressed();
|
||||||
virtual void SpacePressed();
|
virtual void SpacePressed();
|
||||||
|
virtual void ReadKey(int &);
|
||||||
virtual void MouseButtonPressed(MEVENT);
|
virtual void MouseButtonPressed(MEVENT);
|
||||||
virtual bool isTabbable() { return true; }
|
virtual bool isTabbable() { return true; }
|
||||||
|
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ template <typename WindowType> void Screen<WindowType>::Scroll(Where where, cons
|
|||||||
TraceMpdStatus();
|
TraceMpdStatus();
|
||||||
w->Scroll(where);
|
w->Scroll(where);
|
||||||
w->Refresh();
|
w->Refresh();
|
||||||
w->ReadKey(in);
|
ReadKey(in);
|
||||||
}
|
}
|
||||||
w->SetTimeout(ncmpcpp_window_timeout);
|
w->SetTimeout(ncmpcpp_window_timeout);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user