dragscroll icon indicating copy to clipboard operation
dragscroll copied to clipboard

Drag by a specific amount

Open hkutcher opened this issue 7 years ago • 2 comments

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.

hkutcher avatar Mar 20 '17 08:03 hkutcher

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?

asvd avatar Mar 20 '17 12:03 asvd

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.

hkutcher avatar Mar 20 '17 17:03 hkutcher