Status: New
Owner: ----

New issue 246 by chittu.sahoo: setMaxScale and setMinScale not working.

Hi Team,
I am first time user, so I tried to achieve with my limited knowledge.
Basically facing 2 issues:
1. restricting Max and Min size of zooming does not work with PMouseWheelZoomEventHandler 2. Canvas look is shrinking for repeated Zoom IN/OUT using mouse wheel, (like zoom in one step then zoom out one step, repeat...)

What steps will reproduce the problem?
1. Used the MouseWheelZoomExample and added mouseWheelZoomEventHandler.setMinScale(1.0d);

        // install mouse wheel zoom event handler
final PMouseWheelZoomEventHandler mouseWheelZoomEventHandler = new PMouseWheelZoomEventHandler();

I tried with various values for both Max and Min, but don't see any restriction while zooming.

What is the expected output? What do you see instead?
It should restrict upon reaching max and Min value

What version of the product are you using? On what operating system?
1.3.1 Ubuntu 12.4

Please provide any additional information below.

I was trying to set the max and min zoom scale, so need to override the mouseWheelRotated() function, which is not completely achievable, then I encounter another issue,Zoom-in and Zoom-Out by one step continuously shrinking the look and also there is center coordination shift. so in other word, we can't get back to original size once mouse wheel zooming option.

Piccolo2D Developers Group:

Reply via email to