-
-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertical timeline centering #519
Vertical timeline centering #519
Conversation
The new behavior should be the default behavior. How does the logic work when the mouse is outside the window and navigation in the timeline is performed with WASD keys? |
Should there be an option to switch to the old behavior? When the mouse is outside of the timeline view window WASD has the old behavior. When the mouse is in the timeline view it uses the mouse position and has the new behavior. This is controlled via the This makes vertical dragging consistent with horizontal dragging (it freezes when the mouse is dragged out of the timeline view). Though I think it would be cool if dragging beyond the window would be enabled but I haven't looked in to why this limitation is there (seems like But honestly I disabled the feature outside of the window because otherwise there is some weird behavior when the Tracy window is not focused. Probably needs handling of "disappearing" and "reappearing" mouse cursors. The cursor is not considered to have moved by ImGui if it disappears in one place and reappears in another. |
I don't see such need, but if you want it, I won't oppose.
ocornut/imgui#5599 (comment) and the following comments may be related. |
6d8a82c
to
645d53f
Compare
I removed the switch from GUI but I kept it in code. I don't want to burn the bridge yet. I also adjusted the Something else that I thought was a regression of a use-case but I just found a workaround: Sometimes I want to zoom out and see what is above the view without the additional step of scrolling/dragging up. The old behavior was that the items would just expand down but now (that took me a while to realize) you have to move the mouse up to where the timeline ruler or the frame view is to get the same effect. |
This feature, when enabled in the UI (under options), changes the behavior of the timeline view when the
TimelineItem
s are resizing. The timeline view keeps theTimelineItem
that the mouse is hovering over in its location in the view. I have made the old behavior the default because I am not confident that everybody will prefer the new behavior but I still think its ready to be included. The first two commits make sense to be merged even if the rest is not approved. I would consider #286 to be fixed with this change.offset
calculation inTimelineItem
. There should be no observable changes.TimelineItem
. Also needed for the feature.