I am having a issue with ScrollView widget 2.0 when using it as a VERTICAL scrollview. it seems to has all sorts of odd behaviors. here is the code i am using:
[lua]
--************************************************************************
--***** Define Scroll View
--************************************************************************
local widget = require “widget”
local scrollViewListener,gMiddle2
function scrollViewListener(event) – the listener MUST come before the scroll view is defined in the code.
local phase = event.phase
local direction = event.direction
if “began” == phase then
--print( “Began” )
elseif “moved” == phase then
--print( “Moved” )
elseif “ended” == phase then
--print( “Ended” )
end
– If we have reached one of the scrollViews limits
if event.limitReached then
if “up” == direction then
--print( “Reached Top Limit” )
elseif “down” == direction then
--print( “Reached Bottom Limit” )
elseif “left” == direction then
--print( “Reached Left Limit” )
elseif “right” == direction then
--print( “Reached Right Limit” )
end
end
return true
end
gMiddle2 = widget.newScrollView {
id = “gMiddle2”,
top = 0,
left = 0,
width = _x,
height = _y,
scrollWidth = _x,
scrollHeight = _y,
topPadding = 0,
bottomPadding = 0,
leftPadding = 0,
rightPadding = 0,
friction = .972, – how fast the scroll view moves. default is .972
backgroundColor = {39,170,226,255},
hideBackground = false, – if true it wont show the background color.
horizontalScrollDisabled = true,
verticalScrollDisabled = false,
listener = scrollViewListener,
}
[/lua]
if i use this same code as a horizontal scorllview it works fine. i just switch the horizontalScrollDisabled to false and the vertical one to true… and it works normally.
is this on your list to fix Danny?