Skip to content

Alternative inputs for graph panning/camera orbiting#1343

Merged
RodZill4 merged 1 commit intoRodZill4:masterfrom
williamchange:cam-control-graph-inputs
Mar 26, 2026
Merged

Alternative inputs for graph panning/camera orbiting#1343
RodZill4 merged 1 commit intoRodZill4:masterfrom
williamchange:cam-control-graph-inputs

Conversation

@williamchange
Copy link
Copy Markdown
Contributor

@williamchange williamchange commented Mar 20, 2026

context via discord

I can't rotate the object in the 3D panel. I think it is bound to a middle mouse button, which I do not have.

This adds Shift + LMB for graph panning and Alt + LMB for 3d orbit

@williamchange williamchange force-pushed the cam-control-graph-inputs branch from 18456f0 to 6d5479a Compare March 21, 2026 05:29
@williamchange williamchange changed the title alternative inputs for graph panning/camera orbiting Alternative inputs for graph panning/camera orbiting Mar 21, 2026
@williamchange williamchange marked this pull request as ready for review March 21, 2026 05:30
@williamchange williamchange force-pushed the cam-control-graph-inputs branch from 6d5479a to 34e32dc Compare March 21, 2026 05:41
@jamez9
Copy link
Copy Markdown

jamez9 commented Mar 24, 2026

Is it possible to also add zoom equivalents for the graph editor and 3d preview? Trying to use with a laptop and trackpad, I don't think there is a way to zoom these with hotkeys and no mouse. Presumably the same issue is had from a mouse user without a zoom wheel.

Even just being able to use the standard + and - keys would be super useful to be be able to zoom in or out of any view.

@williamchange
Copy link
Copy Markdown
Contributor Author

williamchange commented Mar 24, 2026

In the 3d preview you should be able to zoom with the trackpad pinch gesture, I think in the graph view the same gesture also zooms, which OS are you using?

@williamchange
Copy link
Copy Markdown
Contributor Author

I tested on mac the gesture works

@jamez9
Copy link
Copy Markdown

jamez9 commented Mar 24, 2026

Thanks, I was able to get pinch zoomi working on my Win10 laptop but only for the 2d and 3d previews, not the graph editor. My Linux Mint laptop was not able to do this, but I don't think it has a trackpad capable of doing zoom.

The graph editor does have the + and - zoom buttons at least, but not sure if there is any way of binding these to hotkeys? No zoom widget exists in the 2d or 3d preview windows though. Would be good to unify the zooming ablities on all 3 panels at some point in the future.

@williamchange
Copy link
Copy Markdown
Contributor Author

@williamchange
Copy link
Copy Markdown
Contributor Author

not the graph editor.

Does scrolling on the trackpad work?

@jamez9
Copy link
Copy Markdown

jamez9 commented Mar 25, 2026

On my win10 laptop in the graph view , when using the pinch zoom, it does seem to scroll up and down in an odd way, but in general it seems confused. I guess my issue with relying on pinch to zoom in general, is that it is very specific to the hardware. While it is standard on Mac (which have very nice trackpads), older and cheaper Windows laptops don't all support it. Personally, I am not a fan of gestures on trackpads and prefer hotkeys.

Great to see the PR for zoom htokey support. Is it possible this could also be added to the other views? Btw, Godot itself does have crtl + and - for zooming in it's 2d views.

@williamchange
Copy link
Copy Markdown
Contributor Author

For now you can use ctrl + lmb drag to zoom the 2d views

@williamchange
Copy link
Copy Markdown
Contributor Author

@williamchange
Copy link
Copy Markdown
Contributor Author

williamchange commented Mar 25, 2026

The graph editor does have the + and - zoom buttons at least, but not sure if there is any way of binding these to hotkeys?

It seems these buttons are bound to the same key which is a bug, I opened a PR to fix them so they will be bound to Ctrl+/-, though I think those only works if they are visible(you can pin the 'panels' by right clicking on them)

image

@RodZill4 RodZill4 merged commit 3e6eddb into RodZill4:master Mar 26, 2026
2 checks passed
@RodZill4 RodZill4 added this to the 1.6 milestone Mar 26, 2026
@williamchange williamchange deleted the cam-control-graph-inputs branch March 27, 2026 00:34
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.

3 participants