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

Add file to window title and improve viewport navigation. #385

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

Kiisu-Master
Copy link
Contributor

  • Add the currently open file path to the window title.
  • Add ctrl + middle mouse zooming.
  • Add comments to viewport input handling.
  • Change viewport input handling to be else-if cases for event types.

- Add the open file path to the window title.
- Add ctrl + middle mouse zooming.
- Add comments to viewport input handling.
- Change viewport input handling to be else-if cases for event types.
Comment on lines +78 to 82
elif event is InputEventPanGesture:

# Zooming with ctrl + touch?
if event.ctrl_pressed:
zoom_menu.set_zoom(Indications.zoom * (1 + event.delta.y / 2))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk what this is

@MewPurPur
Copy link
Owner

Since the logic is under InputEventMouseMotion, can you do this with one of the properties for checking for relative movement instead of with a variable?

@Kiisu-Master
Copy link
Contributor Author

The variable is storing the position it will zoom to.
I don't see a property in the event that contains the starting position, so i dont think i could remove it.
This is not a relative thing. Zooming amount is using the relative movement, also with warping, but there is no way to know the position to zoom to in a stateless way.

@MewPurPur
Copy link
Owner

Thanks!

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