Dash cytoscape change base zoom

I have different graphs that I can open in turn.
autorefreshLayout sets a basic zoom for each graph so that the graph fits completely into a screen. I want to add my own zoom buttons to reduce the zoom step. If the set zoom parameter does not coincide with the basic zoom, I reduce the set parameter with my buttons, but a change in the zoom parameter value occurs too abruptly or a bug appears, and only later using the graph itself approaches (because the set parameter is reduced, not the value of the basic zoom of the graph). How to avoid it?