ScrollViewMotion, compilation explodes with Observables

When trying to use observables to configure ScrollViewMotion, compile explodes.

<JavaScript>
exports.gotoDuration = Observable(0.1)
exports.gotoType = Observable('SmoothSnap')
</JavaScript>

<ScrollView ux:Name="view">
  <ScrollViewMotion GotoDuration="{gotoDuration}" GotoType="{gotoType}" />
</ScrollView>

Error:

Fuse 0.25.0 (build 7511)
Build started: FullCompile
Configuring (5.16s)
Compiling syntax tree
build/Local/Preview/cache/ux11/Veckoappen.unoproj.g.uno(32.66): E2047: No implicit cast from Fuse.Motion.ScrollViewMotion to Uno.UX.PropertyObject
/Users/jhsware/Fuse/Veckoappen/build/Local/Preview/cache/ux11/Veckoappen.unoproj.g.uno(32,67,32,73): Error E2047: No implicit cast from Fuse.Motion.ScrollViewMotion to Uno.UX.PropertyObject
build/Local/Preview/cache/ux11/Veckoappen.unoproj.g.uno(41.66): E2047: No implicit cast from Fuse.Motion.ScrollViewMotion to Uno.UX.PropertyObject
/Users/jhsware/Fuse/Veckoappen/build/Local/Preview/cache/ux11/Veckoappen.unoproj.g.uno(41,67,41,73): Error E2047: No implicit cast from Fuse.Motion.ScrollViewMotion to Uno.UX.PropertyObject
(1.92s)

Build completed in 7.10 seconds
    2 errors
Build ended
fuse: Failed to compile project

Hi, thanks for the bug report. And sorry for the slow reply.

Unfortunately the properties on ScrollViewMotion does not currently support binding, and I’m not sure exactly if and when that will happen. If this is a serious limitation for you then tell us your usecase, and we might be able to help you with a workaround. :slight_smile:

I also think the error message you’re getting is rather confusing, and I’ll create a ticket for improving that.

Hi! Thanks, I found a solution for my use case using the existing API.

And the solution was?

I used .seek, it wasn’t the perfect solution because it jumps to the target position but scrolling would have been too slow in my case anyway.