In this chapter, we implement the Z-Axis control (Zoom-in and Zoom-out) using mouse scrolling. Mouse scrolling can be listened using JavaFX ScrollEvent.SCROLL event. From the scroll event we can get how much the scrolling was done using getDeltaY() method.
Read more about this chapter from
With this zoom control, we completed providing full 3D control using mouse.
- Genuine Coder
www.genuinecoder.com