widget.newPickerWheel selected rows issue

Hi Ian,

Does this occur in the Corona widget demo on your device(s)? I just tested it on iPhone 5 and it works fine… releasing outside the screen lets the picker scroll to the value, and that value highlights.

Please run a few tests on this project to confirm whether it’s a picker wheel issue or an issue with your code:

https://github.com/coronalabs/samples-coronasdk/tree/master/Interface/WidgetDemo

(this is the same sample that’s located in your local Corona SDK application folder, so you can test however is most convenient).

Brent

Hi Brent,

It seems it happens when in landscape mode. I couldn’t get your demo to do it in it’s natural portrait mode, but when I switched to landscape, if you release outside the edge of the screen on the simulator or device, sometimes it happens (not always). I’ve attached a screenshot.

As you can see, the month is not highlighted black, despite having slotted back into the right position.

Thanks,

Ian

WidgetPickerError.png

Hi Ian,

I still can’t reproduce this, even in landscape mode on either Simulator or device (iPhone 5). What “percentage” of times are you getting it to occur? Which side of the screen do you release on when it happens? Every time I drag off the screen in any direction, the OS recognizes that the touch has ended and the picker slides to its nearest value and the value highlights.

Brent

Hi Brent,

I can probably recreate it 1 in 5 times. I’m selecting the left column, dragging down off the simulator and releasing. Mostly it pings back fine, but every now and then the item isn’t selected. It’s always going to the right place, just not changing colour.

Thanks,

Ian

Hi Ian,

Sorry, but I still can’t reproduce this… I tried about 30 times and it never occurred. This was using our WidgetDemo in “landscapeLeft” mode, dragging down on the first column, off the Simulator view, and releasing. Can you assemble a video recording of your scenario so I can see how it’s happening?

Brent

Okay - I’ve got it on video. What’s the best way to send it to you?

I did reinstall Corona and now I can only get it to happen every 50 times or so. Not sure why the sudden difference as I had the latest build installed before that too.

Hi Ian,

Unless this sample must remain “private” (asset/idea protection or whatever), can you just put it up on Dropbox or even on YouTube/Vimeo?

Thanks,

Brent

Okay I’ve e-mailed you the link.

Cheers.

Hi Ian,

I guess I never asked this, but can you manage to reproduce this on an actual device? I was able to get it to occur in the Simulator, but most crucially is whether you can get it to happen on a device. Obviously, the Simulator is and always has been a “close as possible” emulation of a real device. While you can drag outside the Simulator’s bounds and still get touch responses, on a device that’s impossible (you can’t get a response by dragging your finger off the device into mid-air). That might be a factor in all of this.

Thanks,

Brent