Bug when zooming timeline too fast
See original GitHub issueSteps to reproduce:
- Load https://cesiumjs.org/Cesium/Apps/HelloWorld.html
- Put cursor over timeline and give it one fast scroll (two fingers on touchpad)
- Try zooming a few more times and it should not zoom anymore
I think the bug is in the code below. It goes away if you make timelineWheelDelta constnat, but this decouples zooming speed from scrolling speed.
function createMouseWheelCallback(timeline) {
return function(e) {
var dy = e.wheelDeltaY || e.wheelDelta || (-e.detail);
timelineWheelDelta = Math.max(Math.min(Math.abs(dy), timelineWheelDelta), 1);
dy /= timelineWheelDelta;
timeline.zoomFrom(Math.pow(1.05, -dy));
};
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Bug when zooming timeline too fast · Issue #4425 - GitHub
Put cursor over timeline and give it one fast scroll (two fingers on touchpad); Try zooming a few more times and it should...
Read more >Timeline zooms all the way in again after zooming
Now, all of a sudden, when I scroll zoom-out too quickly, it's as if the timeline gets to max zoom-out and then zooms...
Read more >Alt+scrolling too fast (to zoom out of the timeline) will punch ...
I'm scrolling to zoom OUT and get a wider view of the timeline. This works as intended when you scroll slowly. If you...
Read more >Timeline zoom updates very slowly - Bug - Shotcut Forum
Like unnecessarily moving things around in memory, like HD files? The timeline updates should be simply managing metadata and repainting the UI.
Read more >Timeline only shows 320 times the zoom slider setting
i have to work at some DVD of duration of 2 hours.This bug is really a problem, because after 1 hour on timeline...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m looking into this.
I created a pull request:
https://github.com/AnalyticalGraphicsInc/cesium/pull/4693
However, right now this fix can produce “undefined” labels in the tick marks if you zoom too far. Perhaps, it needs to be combined with min and max zoom limits.