Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbinding mouse #155

Open
cakir-enes opened this issue Aug 30, 2021 · 1 comment
Open

Unbinding mouse #155

cakir-enes opened this issue Aug 30, 2021 · 1 comment

Comments

@cakir-enes
Copy link

I'm trying to toggle between un/follow mouse modes, calling this doesn't unbind _space.bindMouse(false).bindTouch(false); event listeners.

@williamngan
Copy link
Owner

Hi @cakir-enes -- Can you provide a simple example so that I can reproduce the bug?

The source code seems reasonable but maybe there's something it misses.
https://github.com/williamngan/pts/blob/master/src/Space.ts#L318

williamngan added a commit that referenced this issue Dec 16, 2021
removeListeners don't work because the functions from `bind(this)` are returned as new functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants