Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MouseWheelZoomEventHandler doesnt stop zooming #257

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

MouseWheelZoomEventHandler doesnt stop zooming #257

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem? What is the expected output? What do you 
see instead?
Using a mouseWheelRotated/ mouseWheelZoomEventHandler causes the 
panel/scrollpane/swing/canvas to be zoomed very deep. The reason being is that 
it doesnt stop zooming after stopping to rotate the mouse wheel. Instead it 
keeps zooming until the x value is NaN.

What version of the product are you using? On what operating system?
Piccolo2D 3.0 on Xubuntu

I used following code to add a mouse wheel zoom event handler:

canvas.removeInputEventListener(canvas.getZoomEventHandler());

final PMouseWheelZoomEventHandler mouseWheelZoomEventHandler = new 
PMouseWheelZoomEventHandler();
canvas.addInputEventListener(mouseWheelZoomEventHandler);

Original issue reported on code.google.com by osto_d...@hotmail.com on 16 Feb 2014 at 10:12

@GoogleCodeExporter
Copy link
Author

Thank you for reporting this issue.  Might you be able to check if the 
MouseWheelZoomExample works for you?

http://code.google.com/p/piccolo2d/source/browse/piccolo2d.java/trunk/examples/s
rc/main/java/org/piccolo2d/examples/MouseWheelZoomExample.java

Original comment by heue...@gmail.com on 17 Feb 2014 at 1:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant