This is a migrated thread and some comments may be shown as answers.

Prevent elastic scrolling

10 Answers 338 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manohar
Top achievements
Rank 1
Manohar asked on 02 Oct 2012, 04:59 AM
Hi,
I am evaluating Kendo UI framework to build cross device app!

I've put together a few Views and it looks good so far.
As I am trying it out on iPad, I noticed that the elastic scrolling behavior gives the app non-native like behavior!

If the web app is flicked past the bottom or top of the page, the page would elastically get tugged away from
the header or footer bar (essentially bottom/top of the screen).

How do I prevent the elastic scrolling in views so that the app behaves like native app (without elastic scrolling)?

I've tried setting the view scroller elatic property false on the view's data-init function and that didn't help.
Here is the two lines I've put in data-init function:
            var scroller = e.view.scroller;
            scroller.setOptions({ elastic: false });

(Found a few suggestions on the internet like blocking touch move on body, setting overflow to hidden on body
and none of them helped!).

Please let me know how to prevent elastic scrolling.
Thanks.

B.Manohar

10 Answers, 1 is accepted

Sort by
0
Manohar
Top achievements
Rank 1
answered on 03 Oct 2012, 04:13 AM
Hi,
I've got an additional question related to this topic.

When I define a kendoDraggable element in a page elastic scrolling is active,
the drag start/end events do not get fired as the draggable element gets the elastic scroll and the element moves, but not really the drag happens.

Appreciate suggestions on how this can be solved.
Thanks.

B.Manohar
0
Peter From LA
Top achievements
Rank 1
answered on 05 Oct 2012, 12:17 AM
Hi, I am adding my voice behind Manohar's request.

I am trying to insert a Google map, but the elastic scrolling kills the moving of the map.

I noticed that the header and the footer are pretty solid on iPod, so I hope there is a way to implement what it is asked for in this tread.
0
Peter From LA
Top achievements
Rank 1
answered on 05 Oct 2012, 12:28 AM
sorry... double post...  :(
0
Petyo
Telerik team
answered on 08 Oct 2012, 06:11 AM
Hi,

Take a look at the stretch option of the mobile view - it is designed for cases like the one you describe. 

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Anton
Top achievements
Rank 1
answered on 04 Jan 2013, 01:02 PM
I used the stretch option but it disabled both horizontal and vertical scrolling. Is there a way to disable just one?
I need the page to have a fixed/unscroll-able width but still scroll-able vertically.
0
Alexander Valchev
Telerik team
answered on 09 Jan 2013, 09:17 AM
Hello Anton,

The horizontal scroller will not appear if the content does not expand out of the View's bounds (example). Please check the layout and content of your application.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Norman
Top achievements
Rank 2
answered on 03 Apr 2013, 06:39 AM
Here is an example of our issue.  http://youtu.be/kCLumR-y9D4

The Stretch documentation is not providing clarity on how it is typed in the code. It only mentions what it is for. Can you provide an example code on how to make the stretch = true?
0
Petyo
Telerik team
answered on 04 Apr 2013, 09:12 AM
Hi Norman,

The issue you describe is not related to the topic of this thread. Please consider opening separate threads for your inquiries. 

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Schott
Top achievements
Rank 1
answered on 13 Aug 2013, 03:09 PM
Petyo,

Can you tell me what thread Norman moved his comments to because I'm having the same problem he was having but assumed that this thread was what my problem was related to.
0
Petyo
Telerik team
answered on 14 Aug 2013, 09:00 AM
Hi Schott,

As far as I can see, the issue was handled in a support ticket, not a forum thread. You can open a support ticket with your case, too. We will take a look. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Manohar
Top achievements
Rank 1
Answers by
Manohar
Top achievements
Rank 1
Peter From LA
Top achievements
Rank 1
Petyo
Telerik team
Anton
Top achievements
Rank 1
Alexander Valchev
Telerik team
Norman
Top achievements
Rank 2
Schott
Top achievements
Rank 1
Share this question
or