vis-timeline icon indicating copy to clipboard operation
vis-timeline copied to clipboard

Vis-timeline: Option to show horizontal scroll bar

Open cuijulian opened this issue 3 years ago • 9 comments

When using verticalScroll: true it shows a vertical scroll bar at the left side of the timeline.

I would like to request a feature to show a horizontal scroll bar on the top or bottom of the timeline to scroll through times:

horizontal_scroll_bar

Is this already supported? Thanks in advance!

cuijulian avatar Mar 31 '21 16:03 cuijulian

I don't think that a horizontal scrollbar makes sense here because for this to make sence the min and max would have to be set. Otherwise the timeline can be scrolled endlessly.

I would recommend hinting the user somehow to use the mouse-drag feature.

mojoaxel avatar Jul 07 '21 20:07 mojoaxel

we could maybe scroll horizontally when "Shift" is pressed

no key scroll: scroll vertically shift + scroll: scroll horizontally ctrl + scroll: zoom

CrashLaker avatar Dec 27 '21 00:12 CrashLaker

Any news here ? A horizontally scrollbar sounds amazing....

ChR-iSz avatar Mar 07 '22 09:03 ChR-iSz

Hello, here is a hack to have a horizontal scrollbar with a div surrounding the actual timeline. Need to use min and max to have the component set with boundaries ! https://codepen.io/simonflutilliant/pen/RwxoZRY

simonflutilliant avatar Mar 23 '22 11:03 simonflutilliant

"shift + scroll: scroll horizontally" I like the idea, recently turned on fixed height now lost horizontal scroll

cnagytcorp avatar Aug 05 '22 06:08 cnagytcorp

have any update? I also need this feature

BDMChau avatar Oct 01 '23 07:10 BDMChau

It could not be implemented as a normal scrollbar because the main container only had "virtual scrolling". We would need to imply this basically just as an indicator of the current scroll position and zoom level.

This library is basically unmaintained at the moment. Don't expect any new features like this without external contribution.

If your company needs this: I would estimate ~4k€ to implement this.

mojoaxel avatar Oct 01 '23 08:10 mojoaxel

@mojoaxel

Are you serious to ask for money in threads to implement a scrollbar. I will draw my conclusions and not follow this repository anymore. 4k for a scrollbar! That's a joke...

ChR-iSz avatar Oct 01 '23 08:10 ChR-iSz

Firstly, I appreciate the authors that put in their valuable time to give us this comprehensive timeline library to use for free of cost.

Here is a great example that one can leverage in building their scrollbar functionality via move left/right buttons: https://visjs.github.io/vis-timeline/examples/timeline/interaction/navigationMenu.html

Again, thank you to all the authors for putting in extra time and care in drafting all these detailed examples!

asinghca avatar Jan 29 '24 18:01 asinghca