Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Issue with TOUCH_END not firing when dragging outside in iOS 9

$
0
0

We're seeing an issue with dragging outside the stage in an AIR app in iOS 9 in a specific scenario:

 

-  App is only available for iPhone and not iPad (UIDeviceFamily is 1)

-  App is being used on an iPad, which scales that iPhone app up using its 1X / 2X compatibility mode

-  iPad is using iOS 9

 

In our app, we have a scrolling panel of items, where users can drag this panel left and right to see more items within.  Under previous versions of iOS, when the user made an extreme swipe where their finger went outside the bounds of the game (or onto the bezel outside the screen), this would fire a TOUCH_END event.  In iOS 9 however, it seems this touch event is just completely lost once their finger goes outside the bounds of the app window, and a TOUCH_END event never fires.  Continuing the motion and dragging that finger back inside the screen and releasing after this happens will also not fire a TOUCH_END event.  This is especially problematic when dealing with multitouch, as we keep track of a touchPointID when doing a startTouchDrag on that panel, and listen for a TOUCH_END where the touchPointID matches the ID that started the drag.

 

Note that this seems to ONLY be occurring in the scenario mentioned above:  an iPhone-only app being used on an iPad under compatibility mode, and only on iOS 9.  This issue is not occurring on iPad-only or Universal apps (the TOUCH_END is correctly firing when dragging out-of-bounds for those).  Also the same issue is occurring with no MOUSE_UP events being fired as well -- though this isn't as much of an issue as missing the TOUCH_END with its touchPointID for correctly handling multitouch events.

 

I'm not sure if this is an issue on Apple's end with changing the behavior of touch events in iOS 9, or if it's an issue on Adobe's end with interpreting the touch events being sent in iOS 9.  If anybody has any insight on if this is an AIR issue or an Apple issue it would definitely be appreciated.


Viewing all articles
Browse latest Browse all 2954

Trending Articles