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

Fix mouse pan #141

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Fix mouse pan #141

merged 1 commit into from
Jun 12, 2024

Conversation

diniamo
Copy link
Contributor

@diniamo diniamo commented Jun 11, 2024

Using integers for coordinates and mouse delta doesn't work because both dx and dy would and up being either -1 or 1, which only allows diagonal panning.

Keep in mind that I only changed the types in the relevant places, and while this compiles fine, I'm pretty sure it's incomplete, please point out anything else this needs.

src/ui.c Show resolved Hide resolved
Signed-off-by: diniamo <diniamo53@gmail.com>
@artemsen artemsen merged commit 80726c4 into artemsen:master Jun 12, 2024
1 check passed
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.

2 participants