detecting two finger (or pinch) touch

Hi Frank,
That’s good to hear (I suppose), as in, not a Corona bug!

I’m not sure what the “SlideView” is exactly. Is it like the common Flickr photo browser, or the page-by-page “flick/drag to next page” thing similar to the native iOS navigation? If so, you might want to try out a module I wrote for this (link below). Admittedly, it needs some minor tweaks and improvements to what you’ll find in the downloadable project, but I haven’t gotten around to it yet, between other projects and priorities. Still, if this is what you’re looking for, might be worth testing out. One thing it doesn’t do (or shouldn’t) is stop “between pages”, at least not on the actual device (it might on the Simulator, but that’s because the Simulator assumes that a touch/drag can keep going outside of its actual window bounds, which of course isn’t physically possible on hardward (your finger would hit the edge of the screen and slide off into empty air). :slight_smile:

http://developer.coronalabs.com/code/enhanced-springboard-slidephoto-viewer

Brent
[import]uid: 9747 topic_id: 32178 reply_id: 128688[/import]

Brent,

Interesting. Your springboard viewer uses the transition function and it has the same issue as my code and the slideview. Your slides do stop anywhere I want when I put two fingers on the screen.

Thanks,
Frank [import]uid: 31039 topic_id: 32178 reply_id: 128693[/import]

Just to clarify: the transition part only happens when the slide is “released”. So, are you putting down 2 fingers during this transition to “interrupt” it, then when you lift both fingers off, the slide remains frozen in that spot? [import]uid: 9747 topic_id: 32178 reply_id: 128697[/import]

For example; i put two fingers down and slide from slide 1 to slide 2. no matter where I release, the two images stay at the release position. [import]uid: 31039 topic_id: 32178 reply_id: 128698[/import]

just installed the lastest build 2012.936. same result. i think we’re looking at a ‘transition’ bug. [import]uid: 31039 topic_id: 32178 reply_id: 128712[/import]

My guess is either a transition bug, or that for some reason the “ended” phase of the touch listener isn’t responding properly. I know it’s a minor nuisance, but could you create a quick test project to print phases to the screen, and see if you’re getting the correct responses using both 1-touch and multi-touch?

Brent
[import]uid: 9747 topic_id: 32178 reply_id: 128714[/import]

Hi Brent,
I used your Enchanced Slider program for the test.

For multitouch activated, or not, you are correct. The “ended” phase isn’t responding properly with two finger touch.

Now the remedy. I put in a bug report, but I don’t know how long it will take. I’m dead in the water.

Thanks,
Frank [import]uid: 31039 topic_id: 32178 reply_id: 128780[/import]

Hi Brent,
I believe its a transition issue.

It’ll take me sometime to isolate the portion without causing other issues, but the Corona interface/SlideView example program shows the similar problem.

Normal behavior in this program; current image transitions into the next image smoothly after the first image moves ‘about midway’ across the screen.

Here’s the problem I share with this program with a two finger touch,;

moving current image midway across the screen leaves both current image and next image at that location. no complete transition.

Three or more fingers results in no movement at all.
Thanks,
Frank [import]uid: 31039 topic_id: 32178 reply_id: 128671[/import]

Hi Frank,
I wonder if you could download and test the “parallax” module tutorial that I wrote about recently, on your Kindle, and see how it behaves. This uses basic touch/drag sensing and might help determine if your issue is a Corona issue/bug, a Kindle device issue, or something with the SlideView module.

The parallax module should be run without multi-touch enabled… of course, I haven’t tested it with multi-touch, so I have no idea how it might function in that case!

http://www.coronalabs.com/blog/2012/10/16/parallax-simplified/

Thanks,
Brent
[import]uid: 9747 topic_id: 32178 reply_id: 128680[/import]

Hi Brent,

Works great in both modes; multitouch activated and not.

I noticed there aren’t any ‘transition’ statements in the code.

Three or more finger touch, no movement.

Thanks,
Frank [import]uid: 31039 topic_id: 32178 reply_id: 128686[/import]

Hi Frank,
That’s good to hear (I suppose), as in, not a Corona bug!

I’m not sure what the “SlideView” is exactly. Is it like the common Flickr photo browser, or the page-by-page “flick/drag to next page” thing similar to the native iOS navigation? If so, you might want to try out a module I wrote for this (link below). Admittedly, it needs some minor tweaks and improvements to what you’ll find in the downloadable project, but I haven’t gotten around to it yet, between other projects and priorities. Still, if this is what you’re looking for, might be worth testing out. One thing it doesn’t do (or shouldn’t) is stop “between pages”, at least not on the actual device (it might on the Simulator, but that’s because the Simulator assumes that a touch/drag can keep going outside of its actual window bounds, which of course isn’t physically possible on hardward (your finger would hit the edge of the screen and slide off into empty air). :slight_smile:

http://developer.coronalabs.com/code/enhanced-springboard-slidephoto-viewer

Brent
[import]uid: 9747 topic_id: 32178 reply_id: 128688[/import]

Brent,

Interesting. Your springboard viewer uses the transition function and it has the same issue as my code and the slideview. Your slides do stop anywhere I want when I put two fingers on the screen.

Thanks,
Frank [import]uid: 31039 topic_id: 32178 reply_id: 128693[/import]

Just to clarify: the transition part only happens when the slide is “released”. So, are you putting down 2 fingers during this transition to “interrupt” it, then when you lift both fingers off, the slide remains frozen in that spot? [import]uid: 9747 topic_id: 32178 reply_id: 128697[/import]

For example; i put two fingers down and slide from slide 1 to slide 2. no matter where I release, the two images stay at the release position. [import]uid: 31039 topic_id: 32178 reply_id: 128698[/import]

just installed the lastest build 2012.936. same result. i think we’re looking at a ‘transition’ bug. [import]uid: 31039 topic_id: 32178 reply_id: 128712[/import]

My guess is either a transition bug, or that for some reason the “ended” phase of the touch listener isn’t responding properly. I know it’s a minor nuisance, but could you create a quick test project to print phases to the screen, and see if you’re getting the correct responses using both 1-touch and multi-touch?

Brent
[import]uid: 9747 topic_id: 32178 reply_id: 128714[/import]

Hi Brent,
I used your Enchanced Slider program for the test.

For multitouch activated, or not, you are correct. The “ended” phase isn’t responding properly with two finger touch.

Now the remedy. I put in a bug report, but I don’t know how long it will take. I’m dead in the water.

Thanks,
Frank [import]uid: 31039 topic_id: 32178 reply_id: 128780[/import]

Got a reply from support which I appreciate; Sound like they already knew about this.

“We have a known bug (15651) dealing with two fingers touch on Android devices when multitouch is NOT enabled. The problem is with two finger touch, the “ended” phase is not issued. This sounds like the same thing you are reporting. We are looking to fix this bug in the next week.”

Frustrating that there isn’t a simple query against the bug database by case number or topic. No logical query function against the forum.

Don’t know if they will actually solve the problem in the time-frame. Unfortunately for me.

As a precaution, I’m going to look at a another environment to develop. Painful as it is. [import]uid: 31039 topic_id: 32178 reply_id: 129150[/import]

Got a reply from support which I appreciate; Sound like they already knew about this.

“We have a known bug (15651) dealing with two fingers touch on Android devices when multitouch is NOT enabled. The problem is with two finger touch, the “ended” phase is not issued. This sounds like the same thing you are reporting. We are looking to fix this bug in the next week.”

Frustrating that there isn’t a simple query against the bug database by case number or topic. No logical query function against the forum.

Don’t know if they will actually solve the problem in the time-frame. Unfortunately for me.

As a precaution, I’m going to look at a another environment to develop. Painful as it is. [import]uid: 31039 topic_id: 32178 reply_id: 129150[/import]

Hi Frank,
I checked the bug database on the site and the status is marked as “active”. That’s a good thing… it means it’s “on the table” versus “we’ll look into it eventually”. The case number is actually 17609, with the sub-case being 15651 as was noted to you.

I fully understand that you’re treading water while this is being fixed, and while it’s probably little consolation, are there other aspects of your app which you could work on in the meantime? I know my own projects have hundreds of loose ends that need to be addressed at any given time, and if I temporarily stop one thread, I can choose from a dozen others to work on.

Considering that the bug is, indeed, being actively investigated by Corona, perhaps you can take this approach. Of course it’s up to you… if this is outright a show-stopper and nothing else can be done on your end until it’s fixed, then I suppose that checking out an alternative development platform is the option you’re left with. :frowning:

Brent
[import]uid: 9747 topic_id: 32178 reply_id: 129243[/import]