How to set a limit on how far you can pan with PeasyCam?
in
Contributed Library Questions
•
1 years ago
Hi everyone,
I'm using PeasyCam to search around a high res image and so far I have switched the pan to the left mouse button using:
cam.setLeftDragHandler(PanDragHandler);
and I have restricted the min and max zoom so that the user can zoom right into the painting but not through it.
However the user is still free to pan outside of the painting so it would be really great if someone had a method to restrict how far left and right the user can pan with PeasyCam so something a bit like the cam.setMaximumDistance(); method but for horizontal panning.
Many thanks,
- Tom
I'm using PeasyCam to search around a high res image and so far I have switched the pan to the left mouse button using:
cam.setLeftDragHandler(PanDragHandler);
and I have restricted the min and max zoom so that the user can zoom right into the painting but not through it.
However the user is still free to pan outside of the painting so it would be really great if someone had a method to restrict how far left and right the user can pan with PeasyCam so something a bit like the cam.setMaximumDistance(); method but for horizontal panning.
Many thanks,
- Tom
1