LinkToGlobal loses visualization on scroll and reverts view to Unix epoch
Describe the bug
When using the LinkToGlobal feature to link time axes of multiple series plots in the viewer, the plotted data can disappear when you scroll to a location in the timeline where there is no data. Double-clicking to try to re-home the view sends it to timestamp zero and from there it's very to hard to recover any sane interaction.
To Reproduce Steps to reproduce the behavior:
- Open rerun viewer with
rerunand select the "IMU Signals" example - For each of the two time series plots, change the
View properties > Time axissetting toLinkToGlobal - Note timestamp where data is visible (18:46:20)
- In one of the plots, click and drag the view with your mouse horizontally to a timestamp nearby where no data is visible in either plot anymore (e.g. to 18:46:10)
- Scroll back to timestamp where data is visible (18:46:20). Note data has disappeared!
- Double-click one of the plots in an attempt to recover, note the timeline goes to 1970-01-01 (Unix epoch)!
Expected behavior
- When
LinkToGlobalis active for two plots, and you were to scroll beyond the timestamp where data is plotted such that no data can be seen in the plots, I should be able to scroll back to where the data is plotted and still see the data. - Double-clicking a plot should always re-home the view back to where data is plotted.
Screenshots
https://github.com/user-attachments/assets/5d33939e-a286-4126-a96d-871e58d1e405
Desktop (please complete the following information):
- OS: macOS Monterey 12.7.6
- Also observed this behavior on Ubuntu 22.04
Rerun version
rerun-cli 0.24.1 (default map_view native_viewer web_viewer) [rustc 1.86.0 (05f9846f8 2025-03-31), LLVM 19.1.7] x86_64-apple-darwin
Video features: av1 default ffmpeg serde
Related to https://github.com/rerun-io/rerun/issues/11168, likely the same underlying problem.
See this thread where problem was initially discussed: https://discord.com/channels/1062300748202921994/1405995563413143694
With #11621 merged this bug still kind of exists, but acts a bit differently.
To Reproduce Steps to reproduce the behavior:
- Open rerun viewer with
rerunand select the "IMU Signals" example - For each of the two time series plots, change the
View properties > Time axissetting toLinkToGlobal - Note timestamp where data is visible (18:46:20)
- In one of the plots, click and drag the view with your mouse horizontally to a timestamp nearby where no data is visible in either plot anymore (e.g. to 18:46:10) ~~5. Scroll back to timestamp where data is visible (18:46:20). Note data has disappeared!~~ Data is still there. ~~6. Double-click one of the plots in an attempt to recover, note the timeline goes to 1970-01-01 (Unix epoch)!~~ (new) double click when no data is visible on either plot anymore, note the timeline goes to 1970-01-01 (Unix epoch)!