1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-29 02:40:05 +00:00

Added an option for Viewport subclasses to create custom scrollbars. Also modified Viewport::getVerticalScrollBar() and ListBox::getVerticalScrollBar() to return references instead of pointers

This commit is contained in:
jules 2017-09-25 11:22:03 +01:00
parent 533fd23439
commit a4f5663fce
9 changed files with 138 additions and 121 deletions

View file

@ -1869,8 +1869,7 @@ bool TextEditor::pageDown (bool selecting)
void TextEditor::scrollByLines (int deltaLines)
{
if (auto* scrollbar = viewport->getVerticalScrollBar())
scrollbar->moveScrollbarInSteps (deltaLines);
viewport->getVerticalScrollBar().moveScrollbarInSteps (deltaLines);
}
bool TextEditor::scrollDown()