Skip to content

fix clicking outside camera joystick_rotate triggered rotation with non-square shape#209

Open
chanayane wants to merge 1 commit intoFirestormViewer:masterfrom
AyaneStorm:pr-fix-camera-floater
Open

fix clicking outside camera joystick_rotate triggered rotation with non-square shape#209
chanayane wants to merge 1 commit intoFirestormViewer:masterfrom
AyaneStorm:pr-fix-camera-floater

Conversation

@chanayane
Copy link
Copy Markdown
Contributor

This fixes an annoying bug with the Camera Roll buttons under the camera joystick, they were tricky to click.
It was possible to click outside the joystick because it was only ignoring clicks out of its circle shape when it was a perfect square.
So it was tricky to actually click on the little buttons, sometimes you would trigger unwanted camera rotations instead of tilting it.
I changed it to a point-in-ellipse check and it's no longer possible to click outside the joystick, like it was doing in the Camera Phototools (in which the joystick was a perfect square so it worked as intented).
Since pointInCircle wasn't used anywhere else, I think it's safe to change that check.

Firestorm Pull Request Checklist

Thank you for contributing to the Phoenix Firestorm Project.
We will endeavour to review you changes and accept/reject/request changes as soon as possible.
Please read and follow the Firestorm Pull Request Guidelines to reduce the likelihood that we need to ask for "Bureaucratic" changes to make the code comply with our workflows.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant