Add wheel scroll function.

This commit is contained in:
Hyunje Alex Jun
2012-11-06 22:35:27 +09:00
parent b409aa3ff3
commit ca22fedf65
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
/* Copyright (c) 2012 HyeonJe Jun (http://github.com/noraesae)
* Licensed under the MIT License
*/(function(e){e.fn.perfectScrollbar=function(){}})(jQuery);
*/(function(e){e.fn.perfectScrollbar=function(){e(this).mousewheel(function(t,n,r,i){e(this).scrollTop(e(this).scrollTop()-i*10),e(this).scrollLeft(e(this).scrollLeft()+r*10),t.preventDefault()})}})(jQuery);