dovigod / V-Gesture

Other
2 stars 0 forks source link

[BUG] - memory leaking while unregistering & disconnecting #29

Closed dovigod closed 5 months ago

dovigod commented 5 months ago

Description

there seems to have memory leak while unregistering Gesture & executing stopDetection

Reproduction URL

n/a

Reproduction steps

import { VGesture } from './VGesture'
import { ClickGesturePlugin } from './Plugins/ClickGesturePlugin'
async function init() {
  const vGesture = new VGesture();

  await vGesture.initialize();
  const clickGesturePlugin = new ClickGesturePlugin({

  })

  vGesture.register(clickGesturePlugin)
  vGesture.startDetection()
  vGesture.stopDetection()
}
init()

### Screenshots

```bash
![DESCRIPTION](LINK.png)

Logs

No response

Browsers

Chrome

OS

Mac

dovigod commented 5 months ago

30