Subtubes
Subtubes

Reputation: 16883

ScrollViewContainer wont scroll when I use views to sequence from instead of surfaces using Famous

I am sequencing a ScrollViewContainer with some views I created. The views each have a surface but when I do this the ScrollViewContainer wont scroll anymore. When I use a list of surfaces to sequenceFrom([Surface, Surface, Surface]) the ScrollViewContainer works fine but when I use a list of Views sequenceFrom([MyView, MyView, MyView]) it wont scroll.

Upvotes: 0

Views: 55

Answers (1)

talves
talves

Reputation: 14353

More than likely your View will need a renderable that will pipe to the View like a Surface.

In this case you would pipe the Surface events to the View output event handler from within your View.

See line 62 of this example on jsBin.

surface.pipe(view._eventOutput);

Upvotes: 1

Related Questions