-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fixing infinite spinning animation on user menu ctrl+click #778
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
Conversation
Added proper handling of primary mouse button click with and without ctrl-/meta-key modifier. Added handlig of middle mouse button click.
|
@Faldon Does this look right? Could you check this out and retry? What I did to get this:
|
|
Checked out and it works as expected. Thanks for helping out. Have to practice the rebase a little bit more. |
|
looks good 👍 |
|
The menu now closes on right click. So the context menu of the right click hang somewhere in the UI, but the right clicked element is not visible anymore. @Faldon Is this the wanted behaviour? |
|
I personally prefer it that way. Although it makes debugging a little bit harder. |
|
It shouldn’t close on right-click, doesn’t do that at the moment either. ;) Let’s stick to fixing the one issue at hand and not putting other stuff in. |
Fixed wrong variable assignment when trying to open link in new window.
|
Ok. I rewrote it to stay open and not showing the spinner animation when doing a right click on the menu. |
core/js/js.js
Outdated
| // a new tab | ||
| OC.hideMenus(); | ||
| // On middle click or on first button click with ctrl key or meta key hold | ||
| console.log(event.which); |
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.
debug log? ;)
|
Ach f* -.- |
No worries 😄 |
|
works fine now 👍 |
|
@MorrisJobke can we merge this or is it required to have another reviewer, as there were some more changes after @schiessle gave his thumbs up? |
I will test this again and review it finally. |
|
Tested and works now as wanted 👍 |
|
I would keep this as it is in |
|
This kills for me and @nickvergessen navigation between apps (for Joas all apps, for me only gallery -.-) in Firefox. I will revert this now. |
|
I will look into it. |
Thanks a lot 👍 |
setupMainMenu() & setupUserMenu(): Changed click delegate to add the spinner animation only the primary mouse button was clicked without ctrl- or meta-key modifier Adding mouseup delegate to hide the menu if the middle mouse button was clicked. Redone nextcloud#778
setupMainMenu() & setupUserMenu(): Changed click delegate to add the spinner animation only the primary mouse button was clicked without ctrl- or meta-key modifier Adding mouseup delegate to hide the menu if the middle mouse button was clicked. Redone nextcloud#778
|
@MorrisJobke So, I created a new PR to have a clean base. |
Fixing infinite spinning animation on user menu ctrl+click
cc @Faldon