Hey,
I’ve got a business app that I’m building. As part of it, I’m displaying various text on screen followed by a selector wheel, which means that its all insider a scroll view. It appears that scrolling throws off the picker wheel’s selection, sometimes flinging the wheel to odd parts of the list.
Am I doing something wrong, or does this happen for other people as well?
Build: 2013.1076, Occurs on both Mac Simulator and a Sony Ericson X10.
[lua]local widget = require(“widget”)
local data = {}
data.vrms = { “ABCDEFG”, “1234567”, “WHADIS?”, “1”, “2”, “3”, “4” }
screenGroup = widget.newScrollView{
left = 0,
top = 0,
width = display.contentWidth,
height = display.contentHeight,
scrollWidth = display.contentWidth * 1,
scrollHeight = display.contentHeight * 1.5,
hideBackground = true,
scrollBarColor = {189, 45, 255, 128}
}
local text = “Text\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\nText\n”
local mainText = display.newText( text, 10, 0, display.contentWidth, 0, native.systemFont, 18 )
screenGroup:insert(mainText)
–
–Select VRM
–
local columnData =
{
{
align = “center”,
startIndex = 1,
labels = data.vrms,
}
}
local pickerWheel = widget.newPickerWheel
{
top = mainText.height,
font = native.systemFontBold,
columns = columnData
}
screenGroup:insert(pickerWheel)[/lua]