almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.84k stars 1.48k forks source link

Horizontal Scroll bar that simulates the drag event #1810

Open victorjeman opened 8 years ago

victorjeman commented 8 years ago

Is it possible to bind a horizontal scrollbar to timeline? I need to implement a horizontal scrollbar for visjs timeline. When the time line is dragged the scrollbar should update itself and when i scroll the time line should move smoothly.

hero2201 commented 8 years ago

I am also have same, i want to scrollbar, now i have to use mouse drag

yotamberk commented 8 years ago

@victorjeman A horizontal doesn't make sense unless min date and max date are defined (since time is infinite and has no start or end and dragging back or forward in time would never end). Otherwise, why would you want this feature? Does your case involve a min date and max date?

mstumpf818 commented 8 years ago

@yotamberk I'll third that request for a horizontal scrollbar and I agree that it only makes sense in a timeline with a min & max date. It would be great if it was a configurable option since not all timelines need it.

yotamberk commented 8 years ago

@mstumpf818 Ok ok... I'll see what I can do.

yotamberk commented 7 years ago

This is too difficult for me to do right now. I'll put it again to a label of For everyone and hopefully someone will be able to pick it up in the future.

mstumpf818 commented 7 years ago

thanks

ahmadalibaloch commented 7 years ago

Badly needed in a lib like vis js.

Rikk commented 6 years ago

Needing a Horizontal Scrollbar too. Any clue how to mimic it without changing visjs source?

@yotamberk @mojoaxel Btw, v4.17.0 changelog is misleading as it says "Implements 2193: Horizontal scrollbar (2201)", while in truth it means "horizontal scroll" (I can't see any added bar).

davidoskay commented 6 years ago

Any updates? It would be very powerful if somebody add horizontal scrollbar because then we could create something like creating events with mouse moves like in other calendars - not via double click. Navigation can be done with arrows to navigate through weeks. For inspiration you can look at FullCalendar plugin called 'scheduler' - it has timeline view with scrollbar but it's commercial.

hrdwdmrbl commented 6 years ago

I would just chime in to say that I would prefer if there was no Max Date requirement. The reason is that in in our case we are dynamically added elements to the timeline. So the Max Date is always growing.