Skip to content

nk_widget_bounds and nk_input_is_mouse_hovering_rect treat nk_rect differently on nk_image #863

@telephone001

Description

@telephone001

When trying to detect if the mouse is hovering over an nk_image, it detects the image right under the actual image.

I believe that nk_widget bounds returns a nk_rect where the x and y correspond to the x and y coordinates of the bottom left corner of the widget

While the nk_input_is_mouse_hovering_rect thinks that rect's x and y coordinates correspond to the top left corner.

I'm not entirely sure if the topleft or the bottomleft as xy coordinates is true, so I'm not really sure which one should be fixed.
But I thought this would be useful to point out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions