ScrollView widget :

Hi everybody :slight_smile:

I’ve just installed the new Corona release and so the widget 2.0 version.

In my app, I have a scrollView which occupied my entire screen.
I set the hidebackground option to true.

I have in this order

  • a background image which occupied my entire screen (depth 1)
  • a transparent image which occupied the first half of the screen (depth 2) WITH A TOUCH LISTENER
  • a scrollView which occupied my entire screen (depth 3)

Before widget 2.0 version , my transparent image was received touch event, and I was able to create instance of object in the touch listener object.

Now, with widget 2.0 version my transparent image doesn’t receive touch event anymore :frowning:
The scrollView widget is now a sort of “shield” for all events.

I tried to put “return false” on the scrollView listener, but it doesn’t work
I’m trapped :frowning:

Any idea or help would be very appreciate :)))

Best,
Olivier [import]uid: 160159 topic_id: 37176 reply_id: 67176[/import]

Hi Oliver,

May I ask you what are you trying to achieve? What is the transparent image with touch listener for?

Maybe the solution is to just change the order of the display hierarchy.

Or you can set up the routine directly in the scrollView listener since the new widget 2.0 gives you great functionality like event.x and event.xStart parameters. You could for example use this for defining half of the screen and create your object instances directly in that listener.

[import]uid: 140000 topic_id: 37176 reply_id: 145489[/import]

Thank you for your answer romancfischer

Sorry about the delay. I was in holiday…

I set up the routine directly in the scrollView listener like you said.

It works

Thanks so much :slight_smile:

Cheers,

Olivier

Hi Oliver,

May I ask you what are you trying to achieve? What is the transparent image with touch listener for?

Maybe the solution is to just change the order of the display hierarchy.

Or you can set up the routine directly in the scrollView listener since the new widget 2.0 gives you great functionality like event.x and event.xStart parameters. You could for example use this for defining half of the screen and create your object instances directly in that listener.

[import]uid: 140000 topic_id: 37176 reply_id: 145489[/import]

Thank you for your answer romancfischer

Sorry about the delay. I was in holiday…

I set up the routine directly in the scrollView listener like you said.

It works

Thanks so much :slight_smile:

Cheers,

Olivier

you’re welcome.

you’re welcome.