question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug when zooming timeline too fast

See original GitHub issue

Steps to reproduce:

  1. Load https://cesiumjs.org/Cesium/Apps/HelloWorld.html
  2. Put cursor over timeline and give it one fast scroll (two fingers on touchpad)
  3. 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:open
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nikakhovcommented, Nov 9, 2016

I’m looking into this.

0reactions
nikakhovcommented, Nov 29, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found