Scrollview - Scrolltoposition Does Not Cancel Current Scroll

Hi,

In most places I use my custom scrollview, however I’ve got some leftovers using the one from widgets.

In some cases I want to stop the scrollview. I thought that calling :scrollToPosition function would solve it, however after stopping it will continue it’s previous movement.

For example, when tapping screen I executed:

local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 0}

it looked like there’s nothing going on. Scrollview moved just as it was before I touched the screen.

I decided to try to extend the time:

local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 1000}

this one’s funny. Scrollview stops for a second and starts scrolling again like it was before I touched the screen.

Is this an expected behavior?

Thanks,

Krystian

Hi,

In most places I use my custom scrollview, however I’ve got some leftovers using the one from widgets.

In some cases I want to stop the scrollview. I thought that calling :scrollToPosition function would solve it, however after stopping it will continue it’s previous movement.

For example, when tapping screen I executed:

local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 0}

it looked like there’s nothing going on. Scrollview moved just as it was before I touched the screen.

I decided to try to extend the time:

local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 1000}

this one’s funny. Scrollview stops for a second and starts scrolling again like it was before I touched the screen.

Is this an expected behavior?

Thanks,

Krystian

Hey Krystian, nice catch.

Would you be so kind as to [buglink] for this issue? I will get it fixed asap.

Thanks

Thanks,

I’ve created 

Case 22580

Hi,

In most places I use my custom scrollview, however I’ve got some leftovers using the one from widgets.

In some cases I want to stop the scrollview. I thought that calling :scrollToPosition function would solve it, however after stopping it will continue it’s previous movement.

For example, when tapping screen I executed:

local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 0}

it looked like there’s nothing going on. Scrollview moved just as it was before I touched the screen.

I decided to try to extend the time:

local x, y = sv:getContentPosition() sv:scrollToPosition{y = y, time = 1000}

this one’s funny. Scrollview stops for a second and starts scrolling again like it was before I touched the screen.

Is this an expected behavior?

Thanks,

Krystian

Hey Krystian, nice catch.

Would you be so kind as to [buglink] for this issue? I will get it fixed asap.

Thanks

Thanks,

I’ve created 

Case 22580

Hi,

Got same issue as Krystian with Version 2013.1093 (2013.4.20)

Has it been corrected in earlier version?

Thanks

Olivier

Not yet, no.

Sorry, this bug never got assigned to me and it slipped my memory.

I have fixed it today and the fix will be available in one of the next few daily builds.

Thanks for your patience!

Thanks Krystian, thanks Danny  :slight_smile:

Olivier

Hi,

Got same issue as Krystian with Version 2013.1093 (2013.4.20)

Has it been corrected in earlier version?

Thanks

Olivier

Not yet, no.

Sorry, this bug never got assigned to me and it slipped my memory.

I have fixed it today and the fix will be available in one of the next few daily builds.

Thanks for your patience!

Thanks Krystian, thanks Danny  :slight_smile:

Olivier

Hello, 

I think the behavior discussed by krystian6 has returned. If I call scrollToPosition again, it unfortunately doesn’t cancel the first call.

For example, let’s say I have the following hypothetical code: 

scrollView:scrollToPosition({time = 3000, x = 100 }); scrollView:scrollToPosition({time = 2000, x = 200 });

Instead of canceling the first scrollToPosition, once the second scroll has been completed the program continues the first scrollToPosition call. 

Is there a way I can cancel any current scrollToPositions so I don’t get this type of effect?

Thank you!

Hello, 

I think the behavior discussed by krystian6 has returned. If I call scrollToPosition again, it unfortunately doesn’t cancel the first call.

For example, let’s say I have the following hypothetical code: 

scrollView:scrollToPosition({time = 3000, x = 100 }); scrollView:scrollToPosition({time = 2000, x = 200 });

Instead of canceling the first scrollToPosition, once the second scroll has been completed the program continues the first scrollToPosition call. 

Is there a way I can cancel any current scrollToPositions so I don’t get this type of effect?

Thank you!

Hi,

jhow is right! There is no way to cancel scrollToPosition! I have the same type of behaviour that krystian6 described!

The last post in this thread is from February! We devs could really enjoy a bug fix now!

Thanks :wink:

Q

This bug was fixed on 5/17/2013 and closed by engineering.  While regression bugs can happen, we can’t fix them unless we have a bug report  on it.

Rob

Submitted a Bug Report. 

Case 39005

Hi,

jhow is right! There is no way to cancel scrollToPosition! I have the same type of behaviour that krystian6 described!

The last post in this thread is from February! We devs could really enjoy a bug fix now!

Thanks :wink:

Q

This bug was fixed on 5/17/2013 and closed by engineering.  While regression bugs can happen, we can’t fix them unless we have a bug report  on it.

Rob