Skip to content

Commit

Permalink
sticky scrollbars _only_ for IScrollers
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 29, 2024
1 parent a4bb7a8 commit 3ef44c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/backend/ComponentImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class ComponentImpl extends ComponentBase {
}
}

if (this.parentComponent!= null && this.parentComponent.isHybridScroller && (this is haxe.ui.components.Scroll)) {
if (this.parentComponent != null && (this.parentComponent is IScroller) && this.parentComponent.isHybridScroller && (this is haxe.ui.components.Scroll)) {
element.style.position = "sticky";
}
}
Expand Down

0 comments on commit 3ef44c0

Please sign in to comment.