I am using svgpanzoom library (link on github repository) in my project . I was setting some initial value:
var minValue = 0.8;
var maxValue = 6;
var numberOfSteps = 5;
instance.setMinZoom(minValue);
instance.setMaxZoom(maxValue);
After that i was trying calculate and set new value for zoomScaleSensitivity:
var newValueForZoomScale = (maxValue - minValue) / numberOfSteps;
instance.setZoomScaleSensitivity(newValueForZoomScale);
Unfortunately , in this case i have 6 or 7 zoom's steps (depends of screen resolution). My question is how i can set correct value for zoomScaleSensitivity and always have only 5 (numberOfSteps) zoom's steps?