this pull request changes the moment, the link callback will be called.
With this pull request links are not going to be called, when the mouse went from !down to down, but when it went from down to !down.
Why:
In my application, I use links to switch windows within my application. (You can open windows from the user help, which uses markdown).
I do this using ImGui::SetWindowFocus which does not work as intended in a docking environment, when the links activate on mouse down (the window containing the markdown will steal the focus immediately back).
Furthermore its what I as an user expect. (i.e. in Google Chrome links open on mouse up, not mouse down)
Hi,
this pull request changes the moment, the link callback will be called.
With this pull request links are not going to be called, when the mouse went from
!down
todown
, but when it went fromdown
to!down
.Why:
In my application, I use links to switch windows within my application. (You can open windows from the user help, which uses markdown). I do this using
ImGui::SetWindowFocus
which does not work as intended in a docking environment, when the links activate on mouse down (the window containing the markdown will steal the focus immediately back).Furthermore its what I as an user expect. (i.e. in Google Chrome links open on mouse up, not mouse down)
Thanks for imgui_markdown!
ClaasJG