Closed T8RIN closed 4 months ago
Like this, but zoomState need to expand its internal maxZoom parameter and also include minZoom one
@T8RIN
I do not think it is a good idea to fix the number of steps of level
to 3.
Different apps have different requirements for double-tap behavior.
Therefore, Zoomable provides a double-tap handler without enforcing a specific number of steps.
In fact, many apps, such as Google Photo and X, change scale in two steps with a double tap. This is why Zoomable's default double-tap handler is implemented in two steps.
Hm, with this implementation add two leveled way easier, maybe just add additional modifier?
Okay, i will remove it, and create additional zoom handler param in object defaults
Done @usuiat
if there will be parameter
level
, then it will be easeir to manage, like