Skip to content

Mouse Dragging #260

Closed
Closed
@mhalber

Description

Hi,

I am fairly new to imgui, so it is possible that I am missing something, however I believe there is possible bug with ImGui::IsMouseDragging()'s current behavior.
Even after finishing the drag over a window, said function will return true, with drag distance equal to 0.0 in both direction. Is there any reasoning for this function to return true after mouse is released? Only subsequent mouse click will stop the dragging from being reported.

A possible fix to that is to simply reset the g.IO.MouseDragMaxDistanceSqr[i] to 0.0 after the mouse is release in ImGui::NewFrame()

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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