8000 How subscribe on 'beforechange' event ? · Issue #643 · cocopon/tweakpane · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

How subscribe on 'beforechange' event ? #643

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

Open
deadbit-dev opened this issue Mar 6, 2025 · 1 comment
Open

How subscribe on 'beforechange' event ? #643

deadbit-dev opened this issue Mar 6, 2025 · 1 comment

Comments

@deadbit-dev
Copy link
deadbit-dev commented Mar 6, 2025

I found this way addBinding(...).controller.value.emitter.on('beforechange', () => ...)
But why not possible just addBinding(...).on('beforechange', () => ...) ?

@2mik
Copy link
2mik commented May 10, 2025

Hello,
I thought to ask a close question. Probably, I could ask in this issue.
To implement a history feature, we need to get an old value of a property before change. However, it would be more handy to get new and old values in a single event on binding change.

Is it possible to get an old value in the current version? If not, this is a feature request.

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
0