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 mouse click action key for right/middle mouse button #1489

Draft
wants to merge 61 commits into
base: master
Choose a base branch
from

Conversation

LiliaDoe
Copy link
Contributor

@LiliaDoe LiliaDoe commented Dec 5, 2024

I've tested a majority of the action keys with right click and middle click. Lock works as it did before. If using both click and hold on right click, it's possible to still pull up the context menu on a zoomed image, depending on which action keys are set to right click.

@LiliaDoe
Copy link
Contributor Author

LiliaDoe commented Dec 7, 2024

Everything looks correct, and what I have tested runs as expected. Performance seems fine from what I've tested. If any bugs or performance issues are found though, let me know and I'll work on fixing them~

@LiliaDoe LiliaDoe marked this pull request as ready for review December 7, 2024 01:55
js/hoverzoom.js Outdated
// create right and middle button timers to handle them separately
let longRightPressTimer;
let longMiddlePressTimer;
// TODO: Prevent middle click from triggering when it's an action key
Copy link
Owner

Choose a reason for hiding this comment

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

Is this still TODO or is this comment a leftover from the early development?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's something that is todo, but I couldn't figure it out yet

@LiliaDoe LiliaDoe marked this pull request as draft December 7, 2024 23:02
Copy link

sonarcloud bot commented Dec 12, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants