Open hkutcher opened 7 years ago
What is the exact issue:
Would you like dragscroll to snap to the given position (i.e. scroll further to reach the needed position upon mouse button release), or..
Does your code stops working if you add .dragscroll?
Both. Yes, my code no longer works, because dragscroll overrides it. I would like dragscroll to go to the next logical increment, round up or down in increments of the column width, which is 240px, however, ideally col width/increment/snap to amount would be configurable.
Great tool. :-) Would you consider adding a parameter or setting to allow scrolling by a specific amount? The area I'm scrolling has columns of info and I'd like to "snap to column", that is, force scrolling by whole columns, not fractions of a column. My columns are 240px, so I was doing this like $(".scroller").scrollLeft(parseInt(this.scrollLeft / 240) * 240);. This no longer works when I add .dragscroll.