window: rename Where to Scroll and make it enum class
This commit is contained in:
@@ -45,18 +45,18 @@ void genericMouseButtonPressed(NC::Window &w, MEVENT me)
|
||||
if (me.bstate & BUTTON2_PRESSED)
|
||||
{
|
||||
if (Config.mouse_list_scroll_whole_page)
|
||||
w.scroll(NC::wPageDown);
|
||||
w.scroll(NC::Scroll::PageDown);
|
||||
else
|
||||
for (size_t i = 0; i < Config.lines_scrolled; ++i)
|
||||
w.scroll(NC::wDown);
|
||||
w.scroll(NC::Scroll::Down);
|
||||
}
|
||||
else if (me.bstate & BUTTON4_PRESSED)
|
||||
{
|
||||
if (Config.mouse_list_scroll_whole_page)
|
||||
w.scroll(NC::wPageUp);
|
||||
w.scroll(NC::Scroll::PageUp);
|
||||
else
|
||||
for (size_t i = 0; i < Config.lines_scrolled; ++i)
|
||||
w.scroll(NC::wUp);
|
||||
w.scroll(NC::Scroll::Up);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,12 +65,12 @@ void scrollpadMouseButtonPressed(NC::Scrollpad &w, MEVENT me)
|
||||
if (me.bstate & BUTTON2_PRESSED)
|
||||
{
|
||||
for (size_t i = 0; i < Config.lines_scrolled; ++i)
|
||||
w.scroll(NC::wDown);
|
||||
w.scroll(NC::Scroll::Down);
|
||||
}
|
||||
else if (me.bstate & BUTTON4_PRESSED)
|
||||
{
|
||||
for (size_t i = 0; i < Config.lines_scrolled; ++i)
|
||||
w.scroll(NC::wUp);
|
||||
w.scroll(NC::Scroll::Up);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user