maryvilledev / codesplainUI

Web app for breaking down and annotating Python 3 source code.
https://www.codesplain.io
GNU General Public License v3.0
2 stars 2 forks source link

Snippet menu should open on click, not on hover #539

Closed dane-johnson closed 7 years ago

dane-johnson commented 7 years ago

Expected Behavior

When I click the snippet menu, it should open

Current Behavior

The menu opens when I hover on it. If I then click it, it closes. Very irritating.

Browser

Firefox

Steps to Reproduce (for bugs)

  1. Hover over the snippet menu
  2. Click it

Possible Solution

thebho commented 7 years ago

I'm not sure I agree. Other sites have menus that work like this

dane-johnson commented 7 years ago

Try it. It is actually annoying as all hell.

thebho commented 7 years ago

The fact that clicking on it closes it, is annoying. I don't mind the hover behavior

thebho commented 7 years ago

This is a good example https://swgoh.gg

thebho commented 7 years ago

Also https://www.amazon.com.

Tabs (for navigating to another service/page) should be clickable Menus (for expanding options) should trigger on a hover and go away when your mouse leaves the header/that menu

dane-johnson commented 7 years ago

These are both clickable because the header itself is an option. Clicking snippets isn't an option, so it shouldn't have an effect.

thebho commented 7 years ago

Yeah, i agree with that. I'm saying Tabs and Menus are 2 different things, and this instance it's a menu, i.e. hover to open and move mouse away to close. Clicking does nothing

dane-johnson commented 7 years ago

Fine with that, but clicking definitely shouldn't close the menu. That is the irritating part.