Any way to implement double click to reset a curve in a function?

Baek Santarek's icon

Is there any way how can I implement a double click to reset a curve in a function object?

The object is obviously aware of where the mouse is hovering in the function but since the curve object doesn't output these values I struggle to figure out how to "hack" the function object to force it to reset a selected curve on double click.

The function object needs some UX love and such controls should be implemented by default IMO but it is what it is so here I am asking.

If this is not possible, does anyone know about a better function object (an external etc.)?

Source Audio's icon
Baek Santarek's icon

Wow, I am embarrassed. I've totally missed the "mousereport" option.

Thank you very much Source Audio!