Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Re: showOnClick option for the second-level sub menus

Home Forums Older releases 0.9.x showOnClick option for the second-level sub menus Re: showOnClick option for the second-level sub menus

#1732
admin
Keymaster

Hi sorry for the delay! I was on a vacation.

By default the showOnClick: true option makes the menu tree behave like OS desktop menus where a click activates the tree and then the sub menus are activated immediately on hover. So you would need some sort of mod. The simplest one I can think of is to add the following code on your page after the SmartMenus jQuery code:

	// always emulate touch mode
	$.SmartMenus.prototype.isTouchMode = function() {
		return true;
	};

This would emulate touch mode even when mouse input is available and thus make sure any sub menu is only activated on tap/click.