Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Capturing touch events that fall outside an object
Started by Guest_adamjs16_* Aug 28 2016 03:23 AM

1 reply to this topic
touch event
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Guest_adamjs16_*

[GLOBAL: userInfoPane.html]
Guest_adamjs16_*
  • Guests

I'm trying to capture a touch event in an app I'm making. It is captured fine when the touch starts and endeds within the bounds of the object. However if the touch event ends outside the object it is not caught. I need to capture the touch even if it ends outside the object where it started. Does anyone know how to do this?

 

Thank you



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,588 posts
  • Corona SDK

Read this.  It will show you how to do what you're trying to achieve:

 

https://docs.coronalabs.com/daily/api/type/StageObject/setFocus.html




[topic_controls]
[/topic_controls]