XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently March 28th, 2024, 12:23 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: December 23rd, 2015, 7:18 pm 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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.


Top
 Profile  
 
PostPosted: May 11th, 2017, 1:03 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
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;
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google [Bot] and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group