Hi,
When I wish to have a scrollable image vertically, to simulate iphone native scrolling, but with image longer than iphone screen, I use the following code (helpAbout image has 320x960 pix) so it has 2 times iphone screen’s high:
local help=display.newImage(“helpAbout.jpg”,0,0)
local touchy=function(event)
if help.y+event.yDelta>0 and help.y+event.yDelta<480 then
transition.to(help,{y=help.y+event.yDelta, time=500, transition=easing.outQuad})
end
end
help:addEventListener(“drag”,touchy)
In SDK 2.0 simulator shows a scaled down image to fit the entire .jpg file of 320x960 pix in 480 vertical pix, but in SDK 1.13 it shows exactly what I wish to do, it means the correct size and the ability to scroll it up or down according to the code above.
So, questions here is: which behavior will be finally adopted by Corona SDK?. I prefer the SDK 1.13 functionally which allows me to use image longer than iphone screen to scroll them up or down, without any scaling.
[import]uid: 3022 topic_id: 820 reply_id: 300820[/import]