
Thats it, the scrolling will be like the native one. We need to add the js library file to the html page then add the below script on the body onload function, var scrollView = new iScroll("wrapper") (i have used iscroll as it best suits my cases). As a default scroll behavior, the scroll is very abrupt and sudden but when the smooth scrolling is active on a web page, the web page scrolls down.

If we targetted to cover android os earlier than 3.0, then we need a third party js library to handle it as css3 -webkit-overflow-scrolling property will not be supporting. Passing an object to faults will overwrite each option in the defaults with the value from that object if it is set.
SMOOTHSCROLL TO BOTTOM ANDROID HOW TO
This generates a smooth scrollable view as like the native one. faults () returns an object containing the default values for each option. Android how to make ScrollView auto scroll to bottom Scroll View automatically scroll to bottom Coding Cafe 84.5K subscribers Subscribe 312 28K views 4 years ago Make an Android App like. To make a scrollable view, we need to have a wrapper div which should contain the scroller div that contains the content. User agents should follow platform conventions, if any. Solution: So, to achieve that smoothness, we need to use CSS positioning property as well as css3 -webkit-overflow-scrolling property. smooth The scrolling box scrolls in a smooth fashion using a user-agent-defined timing function over a user-agent-defined period of time.

Problem: Scroll view achieved using CSS overflow scroll property for android & ios devices are never that smooth as they are in the native way.
