@sXc I did your suggestions it’s not working the scrollView not moving when i drag. I’m not sure if it actual takes the focus here’s some of my relevant code.
[code]
– this is the code to check if the button is move
local function checkifmoved( event )
if event.phase == “moved” then
local dx = math.abs( event.x - event.xStart )
local dy = math.abs( event.y - event.yStart )
if dx > 5 or dy > 5 then
moveitemscroll:takeFocus( event )
end
end
end [/code]
-- here is the button created
moveButton = widget.newButton {
default = "images/closeBox.png",
over = "images/openBox.png",
width = 100,
height = 100,
onRelease = startMove,
id = moveID
}
moveButton.x = 100; moveButton.y = boxy
-- the event listener
moveButton:addEventListener ("touch", checkifmoved )
what seems to be the problem with my code? [import]uid: 189861 topic_id: 34137 reply_id: 135840[/import]