SAMYANG/m/asset/js/sy.m.plugin.js
/**
         * Scrolls silently (with no animation) the page to the given Y position.
         */
Scrolls silently (with no animation) the page to the given Y position.
Scrolls silently ( with no animation ) the page to the given Y position .
function silentScroll(top) {
            var roundedTop = Math.round(top);
            if (options.css3 && options.autoScrolling && !options.scrollBar) {
                var translate3d = 'translate3d(0px, -' + roundedTop + 'px, 0px)';
                transformContainer(translate3d, false);
            }
            else if (options.autoScrolling && !options.scrollBar) {
                container.css('top', -roundedTop);
            }
            else {
                $htmlBody.scrollTop(roundedTop);
            }
        }
function silentScroll ( top ) { var roundedTop = Math . round ( top ) ; if ( options . css3 && options . autoScrolling && ! options . scrollBar ) { var translate3d = 'translate3d(0px, -' + roundedTop + 'px, 0px)' ; transformContainer ( translate3d , false ) ; } else if ( options . autoScrolling && ! options . scrollBar ) { container . css ( 'top' , - roundedTop ) ; } else { $htmlBody . scrollTop ( roundedTop ) ; } }
Scrolls silently (with no animation) the page to the given Y position.
Scrolls silently ( with no animation ) the page to the given Y position .
// The first section can have a negative value in iOS 10. Not quite sure why: -0.0142822265625 // that's why we round it to 0.