widget.newSwitch() On-Off Switch doesn't work when “moved”

On-Off Switch - widget.newSwitch() doesn’t work when I “move”/slide the switch, it works only when I press.

I’ve tried setting “onEvent” but looks like it’s completely ignored as nothing happens.

local widget = require( "widget" ) -- Handle press events for the checkbox local function onSwitchPress( event ) local switch = event.target print( "Switch with ID '"..switch.id.."' is on: "..tostring(switch.isOn) ) end -- Create the widget local onOffSwitch = widget.newSwitch { left = 250, top = 200, style = "onOff", id = "onOffSwitch", onPress = onSwitchPress }  

Hi @s0527705277,

You’re seeing this in the iOS7 version, yes? This is a known issue and we’re working on resolving it.

Thanks,

Brent

Bug# 26440 for a reference.

Reported 9/24/2013. 7 months and counting… 

No. I’m actually seeing this on android jellybean.

Hi @s0527705277,

What build of Corona are you using? I just tested the widget sample project with the Android theme and it works fine. I can tap the switch to activate it, and I can also slide the handle left and right.

Best regards,

Brent

Hi Brent,

Build: 2013.1202

The current daily build is 2189. There have been significant bug fixes with widgets (and in general) since them.  This is a Graphics 2.0 build which means you may need to make some code adjustments to use it.  See:  http://docs.coronalabs.com/guide/graphics/migration.html

Rob

Hi @s0527705277,

You’re seeing this in the iOS7 version, yes? This is a known issue and we’re working on resolving it.

Thanks,

Brent

Bug# 26440 for a reference.

Reported 9/24/2013. 7 months and counting… 

No. I’m actually seeing this on android jellybean.

Hi @s0527705277,

What build of Corona are you using? I just tested the widget sample project with the Android theme and it works fine. I can tap the switch to activate it, and I can also slide the handle left and right.

Best regards,

Brent

Hi Brent,

Build: 2013.1202

The current daily build is 2189. There have been significant bug fixes with widgets (and in general) since them.  This is a Graphics 2.0 build which means you may need to make some code adjustments to use it.  See:  http://docs.coronalabs.com/guide/graphics/migration.html

Rob