javascript - Smooth horizontal scroll bound to mousewheel -
here working example of horizontal scroll mousewheel, not scroll smoothly, ordinary vertical scroll in firefox or opera.
$(function() { $("html, body").mousewheel(function(event, delta) { this.scrollleft -= (delta * 30); event.preventdefault(); }); }); (http://brandonaaron.net/code/mousewheel/docs)
i've made live demo show how it's occur. http://jsfiddle.net/dw4aj/
i want scroll work vertical one. both mousewheel , smoothness. can me?
smooth scrolling browser specific feature.
if want works on of them need on side. there multiple implementations of smooth scrolling jquery.
and may need called kinetic scrolling. if try jquery.kinetic
Comments
Post a Comment