Hi,
i created a simple scrollView with only one imageRect in it. When i start to dragging up or down everthing works as i expect, the content moves directly when i start my drag.
But when i drag to left or right, the conent dont moves directly, i must drag some distance and then the content starts to move.
Why does it behave differently in both axes? How can i fix it? Its not a problem in simulator, on my real mobil phone the behavior is same.
Thanks.
Here is a gif that shows the behavior:
Code:
– Create the widget
local scrollView = widget.newScrollView(
{
x = display.contentCenterX,
y = display.contentCenterY,
width = 35,
height = 35,
scrollWidth = 50,
scrollHeight = 50
}
)
local test = display.newImageRect(uiGroup, "images/level_choose/3.png", 50, 50)
test.x = scrollView.width/2 + 7.5
test.y = scrollView.height/2 + 7.5
scrollView:insert( test )