Skip to content

Clay OnHover callback is incorrectly a global #17

@AngriestSCV

Description

@AngriestSCV

This is not dependent on the release mode as #14 says it is.

When using multiple calls to clay.OnHover(...) with more than one function pointer passed in the last one is the only one that is used.
This is not the case if I use the c implimentation directly by calling clay.C.OnHover directly.

This can be seen by providing multiple callbacks that print a static string when triggered.

This appears to be caused by storing the on_hover_cb globally since Clay waits until Layout time to actually do the callbacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions