cocopon / tweakpane

:control_knobs: Compact GUI for fine-tuning parameters and monitoring value changes
https://tweakpane.github.io/docs/
MIT License
3.7k stars 93 forks source link

Receiving NaN values while disposing #609

Closed titouan-pellerin closed 4 months ago

titouan-pellerin commented 7 months ago

Executing the dispose method of a binding while dragging it, triggers an update with a NaN value (while dealing with number). This behavior is not excepted, and is causing me some problems.

this.pane?.dispose();

cocopon commented 4 months ago

This is an unexpected usage. Disposing of a binding while dragging it means that the binding will be removed during the dragging process. I think this is strange behavior for users.

cocopon commented 4 months ago

Feel free to reopen the issue if you have any updates.