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:
parent
533fd23439
commit
a4f5663fce
9 changed files with 138 additions and 121 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue