From b76392c4e4fa84d1855cda441bf80c4967de6ebd Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Thu, 8 Aug 2024 19:15:23 +0200 Subject: [PATCH] better menus --- haxe/ui/containers/menus/Menu.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haxe/ui/containers/menus/Menu.hx b/haxe/ui/containers/menus/Menu.hx index 9c02778c0..1da5866df 100644 --- a/haxe/ui/containers/menus/Menu.hx +++ b/haxe/ui/containers/menus/Menu.hx @@ -80,12 +80,12 @@ private class CurrentItemBehaviour extends DataBehaviour { _menu.currentIndex = index; for (child in _menu.childComponents) { - child.removeClass(":hover", true, true); + //child.removeClass(":hover", true, true); } var item:Component = _value; if (menuItem != null) { - menuItem.addClass(":hover", true, true); + //menuItem.addClass(":hover", true, true); } } } @@ -102,7 +102,7 @@ class MenuEvents extends haxe.ui.events.Events { public var currentSubMenu:Menu = null; public var parentMenu:Menu = null; - private static inline var TIME_MOUSE_OPENS_MS:Int =400; + private static inline var TIME_MOUSE_OPENS_MS:Int = 400; private var _timer:Timer = null; public var button:Button = null;