Page 1 of 1

One menu for mouseover and click?

Posted: Sat Sep 18, 2021 11:33 am
by deedee123
Is there a single menu with submenu component that works for mouse and touch? (without duplicating the whole structure?).
I'm now using one that works with onclick ("Rollover Menu Click" component). Works o.k. for both, but for mouse use it feels not so intuitive that the subcategories don't show/hide on mouseover/out. would be more elegant if it does..

Re: One menu for mouseover and click?

Posted: Fri Sep 24, 2021 10:03 pm
by Hopki
Hi David,
The menu would need to detect Has Touch and adjust accordingly.
What is needed is in the logic blocks that use the mouse over parent which would be used on a computer with a mouse, add an additional condition, saying only do this if Has Touch is false.

Then the mouse click actions to open the menu item which you would use on a touch screen device, you would have the action filter that would say only do this if Has Touch is true.
So using a combination of action filters and logic block conditions you use the Has Touch trigger to prevent clicks on the computer and then prevent mouse over on a touchscreen device.
Hope this makes sense.

Re: One menu for mouseover and click?

Posted: Mon Sep 27, 2021 9:10 am
by deedee123
ok good i'm gonna try make it.
because the downloadable components "rollover menu click" and "rollover menu mouseover" are separate (but doing the same) i thought maybe it's not possible.
also there's some "cloner_close" and "cloner_tag" values in those components of which i'm not entirely sure what they do :) but tinkering there might break the working of it. i'll give it a try !