Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Is it possible to disable animation on scrollToView in a ScrollableView?

I have a scrollable view with 18 webviews in it. When I scrollToView more than 1 or 2 away from the current view, the new webview does not load.

http://developer.appcelerator.com/apidoc/mobile/1.7.0/Titanium.UI.ScrollableView.scrollToView-method.html

I feel like if I could disable animation it might be ok.

— asked July 22nd 2011 by Dan Frist
  • scrollableview
  • scrolltoview
0 Comments

2 Answers

  • Accepted Answer

    this should work instead of scrollToView

    the_scrollable_view.currentPage = 2;
    

    assuming you have > 3 views

    — answered July 22nd 2011 by Dan Tamas
    permalink
    2 Comments
    • AWESOME! Thanks!

      — commented July 22nd 2011 by Dan Frist
    • Yes! Thank You!

      — commented September 26th 2011 by P B
  • i tried the accepted answer and i still have the "scrolling effect" , i think that the accepted answer solved the problem of loading the webView and did not answer on how to disable the scrolling animation .
    Any other ideas to achieve this ?

    — answered June 7th 2014 by Ayoub Zamouchi
    permalink
    1 Comment
    • Hi,
      Ayoub, did u ever achieve control over the animation of scrollToView() method? I am trying to achieve the same in android.

      — commented July 31st 2014 by Maninder Bhatti
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.