JavaFX 3D Tutorial #5 - Zooming with Mouse Scroll

Опубликовано: 15 Сентябрь 2024
на канале: Genuine Coder
9k
83

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