Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Click outside an object
Started by lacacatoco Feb 17 2019 11:59 PM

- - - - -
2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

lacacatoco

[GLOBAL: userInfoPane.html]
lacacatoco
  • Observer

  • 1 posts
  • Corona SDK

I have for example three buttons, and I will check if there is a click outside the buttons, how can I solve this?

 

Best regards

 

Andreas

https://forums.bulbagarden.net/index.php?threads/english-inspired-teams.267555/



[TOPIC: post.html]
#2

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 762 posts
  • Corona SDK

adding an event listener to the background object is your best bet



[TOPIC: post.html]
#3

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 628 posts
  • Corona SDK

if you don't like event listeners for any reason, just create an invisible rectangle for the all screen and give it touch events also.




[topic_controls]
[/topic_controls]