Skip to content

Commit

Permalink
dont create a new Point each time
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Oct 28, 2024
1 parent 03a6eec commit c5841cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haxe/ui/backend/ComponentBase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1710,8 +1710,9 @@ class ComponentBase extends ComponentSurface implements IClonable<ComponentBase>
private function unmapEvent(type:String, listener:UIEvent->Void) {
}

@:noCompletion private var _cachedComponentOffset:Point = new Point(0, 0);
private function getComponentOffset():Point {
return new Point(0, 0);
return _cachedComponentOffset;
}

private var isNativeScroller(get, set):Bool;
Expand Down

0 comments on commit c5841cf

Please sign in to comment.