DISPLAY : right click zoom too violent

Hello,
If I display a big image: the first right click zoom is too important compared to the fist mouse-wheel event.
The first right click zoom does not take in consideration Panorama zoom value to adjust the first zoom.
On a touchscreen, there is no mouse-wheel but right click can be done.
Using the right click zoom in that case is not convenient.

Is there a workaround or an option to change the first right click zoom behavior?

Thanks in advance,

Mikael.

Hi @Mikael,

sorry for keeping you waiting for so long.
You are absolutely right. The behavior of the :cvb: display when showing an image in panorama mode for which the panorama zoom factor is < 1.0 the behavior has always been to set 100% as the next zoom state. This used to be okayish when images were normally not much bigger than the screen resolution, but with very large images the panorama zoom factor can be significantly smaller than 1.0, making the first step very large. You are also right in that mouse wheel zoom does not exhibit this behavior.

Changing this behavior might be an option, but it’s unfortunately nothing that can be done short-term. What I can offer as a workaround is the attached simple demo program FineZoom.zip (14.8 KB) which implements basically the same thing that the display control is using for the mouse wheel zoom - in this case accessible through a button array. The principle is simple: Precalculate a series of zoom factors been the largest (in this case arbitrarily set to 64) and the smallest (which depends on the image size and the panorama zoom factor) and when zooming in, move from the current zoom factor to the closest one in the appropriate direction.

2 Likes

OK, Thanks for your support.
Mikael.