From e7fe8a8206a22aac17e1ba90451cdd80d1df73dc Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 20 Nov 2024 16:35:34 +0800 Subject: [PATCH] properites in TouchEventCache should be private. --- pal/input/native/touch-input.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pal/input/native/touch-input.ts b/pal/input/native/touch-input.ts index 586e0f30673..3805cad49b0 100644 --- a/pal/input/native/touch-input.ts +++ b/pal/input/native/touch-input.ts @@ -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;