XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
BUG: Object opacity to zero, links still clickable https://www.bbs.xwidget.com/viewtopic.php?f=8&t=6080 |
Page 1 of 1 |
Author: | yereverluvinuncleber [ December 23rd, 2015, 7:18 pm ] |
Post subject: | BUG: Object opacity to zero, links still clickable |
When a layer is made opaque using the fadeto command: aboutUsLayer.FadeTo(0,1); - any links on the layer are still clickable. This is wrong. When a layer has an opacity of zero then it should equate to the following: aboutUsLayer.visible = false; In this case the layer is not visible so you cannot interact with it. The fadeto command is incorrect in the way it operates allowing interaction with an invisible layer. |
Author: | yereverluvinuncleber [ May 11th, 2017, 1:03 am ] |
Post subject: | Re: BUG: Object opacity to zero, links still clickable |
Workaround - To restore normal functionality you will have to change the layer visibility to false once the fadeTo has accomplished its task. The xwidget method of doing this is to use a synchronised timeout function: Code: aboutUsLayer.FadeTo(0,2); // xwidget code to fade the layer in two seconds setTimeout("fadeDone",2000); //the timeout in milliseconds must match the fade measured in seconds. //function that is called when the fadeout is completed function fadeDone () { aboutUsLayer.visible = false; } |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |