Cocos2D-JS 3.6.1 possible bug: setOpacity / fadeIn shows different behavior on web and iOS

  1. I have some MenuItemImages on my scene and each MenuItemImage has a Sprite and a LabelTTF attached to it as children. MenuItemImages are added to a Menu.

  2. I set the opacity of the MenuItemImages by setOpacity(0).

  3. Then I run fadeIn action on the MenuItemImages.

On iOS: The MenuItemImages and all their children have 0 opacity in the beginning and do the fadeIn action.

On web: Only the MenuItemImages have 0 opacity, the Sprites and LabelTTFs have full opacity. So the Sprites and LabelTTFs are clearly visible from the beginning and only the parent MenuItemImages do the fadeIn action.

I want to know what is causing this irregularity and also the standard way to achieve the iOS behavior on web.

setCascadeOpacityEnabled(true) also had no effect on web.

Can anybody help me?

Anybody guide me please.

Sorry for the late reply, I confirmed this issue and will investigate into it.

Edit: It’s fixed here:

https://github.com/cocos2d/cocos2d-html5/pull/2979

Thank you. Will version 3.7 contain the fix? @pandamicro