deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Feat] Non-smooth scrolling for doubleClickZoom

Open dv-klaus-eckelt opened this issue 1 year ago • 0 comments

Target Use Case

I am using a OrthographicView of which I manage the viewState myself/externally as described in the Docs.

I had enabled smooth scrollZoom earlier, but realized that zooming through doubleClick is still smooth, calling onViewStateChange multiple times per zoom step. I think it would be beneficial if this could also be controlled by the controller options.

Proposal

My suggestion is to also accept an object as parameter for doubleClickZoom, similar to scrollZoom where smooth scrolling can be controlled (and potentially also speed for consistency).

Further Notes

From my experiments I saw that the smooth zomming is based on the controllers transitionDuration and interpolator. I have now set the transitionDuration to 0 for now, which also made the doubleClick zooming non-smooth. This link is not obvious from the docs and could also be improved.

dv-klaus-eckelt avatar Jul 30 '24 07:07 dv-klaus-eckelt