Hi,
I’m using the ScollView and some buttons from the newWidget library:
scrollBox = widget.newScrollView{
top = top-2,
width = 320, height = 366,
scrollWidth = 320, scrollHeight = 1000,
hideBackground=true,
maskFile = "assets/mask-320x366.png"
}
group:insert( scrollBox )
local onRouteRelease = function ( event )
print ("phase: "..event.phase)
transition.to( popGroup, { time=500, y=100 } )
end
-- create route button
routeButton = widget.newButton{
style = "brownLarge",
label = "Route", yOffset = -2,
width = display.contentWidth-30,
onEvent = onRouteRelease
}
routeButton.x = display.contentWidth/2
routeButton.y = 120
NextY = routeButton.y + 60
scrollBox:insert( routeButton )
Everything works ok, except for one thing:
Whenever i try to scroll up and down, and hit one of the buttons first, the scrollView doesn’t scroll. It only scrolls when i touch and move anything but the scrollview.
Needless to say this is very annoying, when you have several buttons on your scrollView.
Is there a solution for this?
[import]uid: 50459 topic_id: 29369 reply_id: 329369[/import]