Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict keyboard controls of Camera3D to last added/clicked scene #1394

Closed
wants to merge 1 commit into from

Conversation

ffreyer
Copy link
Collaborator

@ffreyer ffreyer commented Oct 17, 2021

With the current setup multiple Camera3Ds fight over control. Usually the first added will react to keyboard inputs, sometimes others will and sometimes multiple will react. With these changes only the last clicked scenes camera (or last added) reacts to inputs.

For testing you can try keyboard controls with

fig = Figure()
left = LScene(fig[1,1])
scatter!(left, rand(Point3f0, 10))
right = LScene(fig[1,2])
scatter!(right, rand(Point3f0, 10))
fig

@SimonDanisch SimonDanisch mentioned this pull request Oct 19, 2021
@ffreyer
Copy link
Collaborator Author

ffreyer commented Oct 19, 2021

Merged in #1393

@ffreyer ffreyer closed this Oct 19, 2021
@ffreyer ffreyer deleted the ff-camera branch October 19, 2021 21:36
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.

None yet

1 participant