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

Firefox handling of nested MenuItems #469

Closed
reryro opened this issue Oct 22, 2021 · 8 comments
Closed

Firefox handling of nested MenuItems #469

reryro opened this issue Oct 22, 2021 · 8 comments

Comments

@reryro
Copy link

reryro commented Oct 22, 2021

I have a question about the operation of MenuItem -- specifically, nested MenuItems, i.e., MenuItems appended to another MenuItem. This pertains to Firefox only: When using a mouse to navigate the screen it works fine -- as soon as you point to the upper level item, the nested list of items appear and you can then select the desired one. However, in a touch-screen environment, the user has to know to touch and hold for the sub-items to appear -- nothing happens if you simply touch, or even worse -- the item above or below your desired one is activated (assuming they have no nested submenu). So, my question is, is there some browser-specific meta data that can be sent to Firefox to tell it to activate the submenu with just a touch instead of touch and hold?

@dddomodossola
Copy link
Collaborator

Hello @reryro , I pushed a fix to the master branch. Can you please give it a try and eventually close the issue?
Now MenuItems open with mouse click instead that mouse hover event. This allows a better user interaction.

@reryro
Copy link
Author

reryro commented Nov 2, 2021

Hello @reryro , I pushed a fix to the master branch. Can you please give it a try and eventually close the issue? Now MenuItems open with mouse click instead that mouse hover event. This allows a better user interaction.

Davide, thanks so much for this; it worked for me just as you described. I have two questions, if you don't mind...

After I installed your updated code, I couldn't see any change in the browser, even though I had rebooted the server, closed and reopened the browser, cleared the browser cache, restarted the app again -- nothing worked until I changed the port number in my code to force Chrome to see this as a new site -- only then did I see the new behavior of the menu. What did I miss? What is necessary to get new Remi code to take effect in the browser?

And secondly, when I select a menu item, whether it's nested or not, the drop-down menu stays visible on the screen -- I'm sure I'm supposed to do something to close the menu at this point but I'm not sure what that is. How do you close the menu when the selection has been made?

@reryro reryro closed this as completed Nov 2, 2021
@dddomodossola
Copy link
Collaborator

Hello @reryro ,
As you correctly did, it is only required to refresh the cache to make it working. I know that you cleared the browser cache and got no effect, but there is nothing magic, it had to work. I only changed 3 css lines and an html attribute.

Previously the menu item was closing by moving out the mouse cursor. Now it is required to lost the focus. So, to make the menu to close you need to click outside the menu. I will do further tests about this, thank you for reporting.

@reryro
Copy link
Author

reryro commented Nov 2, 2021

Yeah, I don't know what happened with the data refresh; it didn't make any sense to me, either.

As for the menu disappearing upon selection, in my app, music play functions are activated by various menu selections, so no further screen changes occur. Since it really doesn't make sense to require the user to click again to clear the menu, what would you suggest would be the best way to simulate a click programmatically, as part of the selection processing?

@dddomodossola
Copy link
Collaborator

@reryro I have to distinguish a click to a leaf menu item instead of a click to a menu item that has children. When clicking on a leaf, the menu should close. This could be a solution, doesn't it?
I should be able to make this in the weekend.

@reryro
Copy link
Author

reryro commented Nov 3, 2021 via email

@dddomodossola
Copy link
Collaborator

@reryro Now should be fixed, thanks for the patience. If you can, please give it a try and let me know your opinion.

@reryro
Copy link
Author

reryro commented Nov 22, 2021

I'm across the country from my PC and Pi until next week -- I will check then & will be sure to let you know. 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

No branches or pull requests

2 participants