Open
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
There is a memory leak in the following file: core/src/utils/gesture/listener.ts
An "optsTest" event listener is added in a try/catch, and when successful, this event listener is never removed.
Expected Behavior
Passive event listeners have excellent browser support. My suggestion is to remove this check altogether. Otherwise, just remove the event listener after adding it.