easing on drag
matthewlein opened this issue · comments
Cool project!
I think a minor improvement would be to have the drag handler move the minimap directly with the mouse (1px to 1px) instead of doing an easeout transition. it would make it feel much snappier and closer to a scrollbar.
You should be able to get the mouse y on each mouse move, store it, and calculate the delta. that should do it more or less.
That's no problem at all. Only need to set the duration of the animation to zero. I'll add that option to the next release.
Thanks for your feedback!
Added OutlineOptions.duration
in v0.8.