Skip to content

#158 - Add Mouse Scroll Wheel Zoom support in canvas#161

Open
latenitefilms wants to merge 3 commits into
Fabric-Project:mainfrom
latenitefilms:issue-158-mouse-scroll-wheel-zoom
Open

#158 - Add Mouse Scroll Wheel Zoom support in canvas#161
latenitefilms wants to merge 3 commits into
Fabric-Project:mainfrom
latenitefilms:issue-158-mouse-scroll-wheel-zoom

Conversation

@latenitefilms

Copy link
Copy Markdown
Contributor

@vade

vade commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Hey! Some high level thoughts here

We might want this to be a view modifier, rather than an overlay?

I did some looking at this, and saw folks use something like below which might be less burdensome?

Since a view is a struct, i dont think we get any memory issues one shotting the addLocalMonitor ?

 .onAppear(perform:{
                NSEvent.addLocalMonitorForEvents(matching: .scrollWheel) {event in

                // handle event and dont consume
                    return event
                }
            })

@vade

vade commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Also thanks for taking the time to look at solves for this!

@latenitefilms

Copy link
Copy Markdown
Contributor Author

@vade - Let me know if this is any better? Obviously more than happy for you to make any tweaks or changes you need to!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support zooming of node graph with modifier key and mouse scroll wheel

2 participants