Closed WPros closed 7 years ago
If you want scroll horizontal then fix event mousemove :D
_window[addEventListener]( mousemove, cont.mm = function (e) { if (pushed) { (scroller = el.scroller || el).scrollLeft -= (-lastClientX + (lastClientX = e.clientX)); scroller.scrollTop -= (-lastClientY + (lastClientY = e.clientY) + (1 * $(el).css('padding-top').replace('px',''))); } }, 0 );
What exactly is the problem with horizontal scrolling? Can you show a demo?
If you want scroll horizontal then fix event mousemove :D