Open jaredkhan opened 1 day ago
What about scroll wheel zooming? Right now, it has no animation at all. It's direct jump. Although each notch only zooms in a little, so it's not terrible. I think it ends up being similar to the +/- buttons.
Yeah scrolling could do with some work too but I’ll make a separate issue for that. I have a prototype of smooth scrolling that I can send you later on in fact 😊
Yeah scrolling could do with some work too but I’ll make a separate issue for that. I have a prototype of smooth scrolling that I can send you later on in fact 😊
To make sure there is no misunderstanding, I'm referring to the scroll wheel on my mouse, which has a zoom in/out effect. Is that in fact what you meant as well?
Mmh well I mean scrolling on a trackpad or a continuous mouse wheel as opposed to a clicky mouse wheel but similar effect I suspect. There's a branch here if you want to have a play, it's not really ready for a pull request yet: https://github.com/jaredkhan/OZtree/tree/fix-text-jitter
I did it whilst working on text jitter stuff because on desktop there isn't currently a way to gently zoom, only sharp snappy zooming. That branch pays attention to the 'delta' on the wheel event so as to zoom less when you make smaller movements.
Perhaps for a discrete 'clicky' mouse wheel we would need something more.
Getting a conflict on that branch. Mind fixing that up? Happy to play with it.
Animations including:
Currently, frame rates for some of these animations are set very low (zooms at 30FPS, flights at 16FPS) and all assume fixed time step which can cause a little jitteriness.