Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

overlay and touch events passed to scene underneath?
Started by pajter May 05 2018 11:05 PM

2 replies to this topic

Best Answer horacebury , 05 May 2018 - 11:29 PM

Check your overlay options: https://docs.coronalabs.com/api/library/composer/showOverlay.html#ismodal-optional

 

Or post some simple code showing your problem.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 32 posts
  • Corona SDK

Hi, 

In my game scene I'm showing overlay - which is notice box taking 90% width and 30% height from the top.

I noticed when that overlay is displayed touch events don't work on the previous scene (which is still visible in bottom 70%) 

Is there a way to fix that?

Or should I remove overlay and dispay that notice box in game scene?

 



[TOPIC: post.html]
#2

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 2,933 posts
  • Corona SDK

  Best Answer

Check your overlay options: https://docs.coronalabs.com/api/library/composer/showOverlay.html#ismodal-optional

 

Or post some simple code showing your problem.



[TOPIC: post.html]
#3

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 32 posts
  • Corona SDK

 

 

isModal (optional)

Boolean. When set to true, this prevents touches from passing through the overlay scene to objects in the underlying scene. Default is false.

 

How did I missed that.

Thanks horacebury




[topic_controls]
[/topic_controls]