Skip to content

Add hovered to on_release() #56

@TheRedDeveloper

Description

@TheRedDeveloper

Summary

Add a hovered parameter to the on_release() callback to indicate whether the mouse is still hovering over the button when it is released.

Motivation

There is no way to know if the mouse is still hovering over the button when on_release() is called. From #55.

Proposed API

on_release(|id, pointer, hovered| {})

Behavior

  • The hovered parameter only will be true if
    • the mouse is hovering over the element
    • it's still focused (keyboard navigation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedA feature that has been approvedfeatNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions