You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 06c9890
Browse filesBrowse the repository at this point in the historyBrowse files
Editor: Pan from a widget of a node that does not use the navigate button
Since the fix of thedmd#238, a pan needs the press to make the background or an object active.
A press on a widget of a node (a button, which uses the left mouse button) made neither: the view did not pan.
Now a press of the navigate button inside the editor that no item owns is remembered:
- once the mouse drags, the background takes the button until its release (SetKeyOwner()), and the view pans;
- a click stays a click: the context menus of the widget and of its node open, as before;
- a widget that uses the navigate button owns it, and keeps it;
- the release that ends a pan is locked for its frame: no context menu opens under the mouse;
- a drag pressed outside the editor still does not pan (thedmd#238).
Needs Dear ImGui 1.89 (input ownership). With an older one, nothing changes.
0 commit comments