-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Show Peer Info window only when left-clicking on avatar #6309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK - tested and works perfectly, just a small code suggestion
}) | ||
.show()); | ||
setOnMouseClicked(e -> { | ||
if (e.getButton().equals(MouseButton.PRIMARY)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (e.getButton().equals(MouseButton.PRIMARY)) { | |
if (e.isPrimaryButtonDown()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @xyzmaker123. isPrimaryButtonDown
doesn't work correctly in this case and Peer Info window won't show up with a simple left click. It will only show up if left button is pressed the exact moment you release an other mouse button on the avatar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK - based on #6309 (review)
Fixes minor glitch when right-clicking on a peer's avatar in PORTFOLIO
Steps to reproduce: