Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 637 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 637 Bytes

#simplr-smoothscroll

##DEMO

##Requirements jquery-mousewheel

##Usage

$(function () {
	$.srSmoothscroll();
});

##Browser and os detection Browsers that support smooth scrolling natively may be excluded.

$(function () {
	var platform = navigator.platform.toLowerCase();
	if (platform.indexOf('windows') != -1 || platform.indexOf('linux') != -1) {
		if ($.browser.webkit) {
			$.srSmoothscroll();
		}
	}
});

This will enable simplr-smoothscroll only for webkit browsers on windows and linux.