Comments (3)
Can you suggest reasons why this would be worthwhile? Thanks.
from superfish.
-
Users can go to the links less than one click/tap, i.e. going to the main parent link is just one tap or going to the 3rd level link is only 3 taps instead of 4 with the current implementation.
-
The "arrow' would allow to open / close the submenus, for example on screens where it's small enough to click outside of the menus.
-
Related to number 2 above, the "arrow" helps to open/close submenus for links that don't point to actual URLs (only href="#"). For example I have a list of shirts content and I have a "filter menu" such as:
Color Black White
All of it's links will point to "#". So when I tap "Color > White", I have a script that filters out White Shirts. But what happens is that the "Color" menu with its submenu opened is still there and blocking my content. If my screen is also small, i.e. 320 and the menu fill 100% its width, there's also no way now to close the submenu because multiple-tapping either the menus does nothing.
from superfish.
The arrow is not a large enough hit-area to be a suitable as a button. This feature would require additional button elements to be injected into the HTML in place of the existing arrows, which is something I want to steer away from with Superfish (even the arrow spans are about to be removed in favour of pseudo-elements) as that kind of DOM manipulation can be costly, performance-wise. I also need to limit the scope of what Superfish does so it doesn't become too hard to maintain. It began as a hover-menu only and now supports touch, which is already enough to keep me busy.
I think this should be a separate plugin. Years ago, I created an (unreleased) experimental plugin based on the behaviour of the old Digg menu, which behaved as you describe. Maybe I'll dig it out and see if it is worth uploading to GitHub.
from superfish.
Related Issues (20)
- SuperfishForSharePoint HOT 1
- Mobile menu not working 🤔 HOT 1
- jQuery easing animation support
- Way to disable all delays and animations HOT 2
- On Mobile (Google Pixel) on wordpress, selecting a submenu opens and rapidly closes the submenu HOT 1
- v1.7.9 confict with WooCommerce single product tabs navigation HOT 1
- issues with jquery 3.2.1 HOT 3
- onShow triggered again when clicking menu
- how to initialize superfish using javascript HOT 1
- Swiping to scroll opens submenu
- mouseenter targets vs focusin targets HOT 2
- On mobile submenus not showing HOT 1
- Superfish doesn't work correctly
- Close the current submenu by using escape HOT 5
- iPad ios 13.1 menu item link problem HOT 17
- Busted link in the README HOT 1
- jQuery Superfish Menu Plugin
- Homepage implies it contains examples, on their own page
- jQuery(...).superfish is not a function HOT 2
- Is there a support for accessibility for using this menu library. looking for aria-expanded attribute usage in this menu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superfish.