mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-28 23:45:45 -04:00
Add Gameplay settings & make Panes scrollable
This commit is contained in:
@@ -15,6 +15,12 @@ void Component::update() {
|
||||
bool Component::focus() {
|
||||
// Can we focus self?
|
||||
if (mRoot->Focus(true)) {
|
||||
mRoot->ScrollIntoView(Rml::ScrollIntoViewOptions{
|
||||
Rml::ScrollAlignment::Center,
|
||||
Rml::ScrollAlignment::Nearest,
|
||||
Rml::ScrollBehavior::Smooth,
|
||||
Rml::ScrollParentage::Closest,
|
||||
});
|
||||
return true;
|
||||
}
|
||||
// Otherwise, try to focus a child
|
||||
|
||||
Reference in New Issue
Block a user