Skip to content

Commit

Permalink
properites in TouchEventCache should be private.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Nov 20, 2024
1 parent 4160020 commit e7fe8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pal/input/native/touch-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class TouchEventElement {
}

class TouchEventCache {
public _events: TouchEventElement[] = [];
public _length = 0;
private _events: TouchEventElement[] = [];
private _length = 0;

push (eventType: InputEventType, changedTouches: Touch[], windowId: number): void {
const events = this._events;
Expand Down

0 comments on commit e7fe8a8

Please sign in to comment.