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

vertical dragging reversed in safari #3

Open
ribrdb opened this issue May 7, 2021 · 1 comment
Open

vertical dragging reversed in safari #3

ribrdb opened this issue May 7, 2021 · 1 comment

Comments

@ribrdb
Copy link

ribrdb commented May 7, 2021

When I open the demo page in safari, dragging a point down moves it up, and dragging up moves it down.

@ribrdb
Copy link
Author

ribrdb commented May 12, 2021

It seems like this is because the svg has style="transform:scale(1, -1)". If I change it to use an svg transform by adding <g transform="scale(1, -1)"> then the dragging direction is correct.

ribrdb added a commit to ribrdb/numbas-extension-eukleides that referenced this issue May 12, 2021
We use css to flip the y axis to match cartesian coordinates.

Some browsers include this into the transform matrix, but we need to add it for others.
ribrdb added a commit to ribrdb/numbas-extension-eukleides that referenced this issue May 12, 2021
We use css to flip the y axis to match cartesian coordinates.

Some browsers include this into the transform matrix, but we need to add it for others.
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

No branches or pull requests

1 participant