-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to apply both horizontal scroll and vertical scroll at a time in vistimeline #1670
Comments
If you want the orientation in both, you should use orientation: both or by default do not put anything. If you want to remove the orientation and change it, I think you can manage to do it with setOptions. |
Hm likewise, Im trying to set the following behaviour but im not able to achieve both horizontal and vertical scroll :/ |
…1323) and 'horizontalScrollInvert' (visjs#1595) to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction. Fix eslint errors modified: docs/timeline/index.html | Add documentation for options 'horizontalScrollKey' and 'horizontalScrollInvert'. modified: examples/timeline/other/horizontalScroll.html | Add new options 'horizontalScrollKey' and 'horizontalScrollInvert' to horizontal scroll example. modified: lib/timeline/Core.js | Implement new options to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction. modified: lib/timeline/optionsTimeline.js | Add options 'horizontalScrollKey' and 'horizontalScrollInvert'. modified: rollup.config.js | lint modified: types/index.d.ts | Add type definitions for options 'horizontalScrollKey' and 'horizontalScrollInvert'.
…1323) and 'horizontalScrollInvert' (visjs#1595) to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction. Fix eslint errors modified: docs/timeline/index.html | Add documentation for options 'horizontalScrollKey' and 'horizontalScrollInvert'. modified: examples/timeline/other/horizontalScroll.html | Add new options 'horizontalScrollKey' and 'horizontalScrollInvert' to horizontal scroll example. modified: lib/timeline/Core.js | Implement new options to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction. modified: lib/timeline/optionsTimeline.js | Add options 'horizontalScrollKey' and 'horizontalScrollInvert'. modified: rollup.config.js | lint modified: types/index.d.ts | Add type definitions for options 'horizontalScrollKey' and 'horizontalScrollInvert'.
You may check out my PR for the time being and see whether that is what you are looking for. I had the exact same thought, so I took matters into my own hands. Enjoy. |
…, visjs#1323) and 'horizontalScrollInvert' (visjs#1595) to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction. Feature Changes modified: docs/timeline/index.html | Add documentation for options 'horizontalScrollKey' and 'horizontalScrollInvert'. modified: examples/timeline/other/horizontalScroll.html | Add new options 'horizontalScrollKey' and 'horizontalScrollInvert' to horizontal scroll example. modified: lib/timeline/Core.js | Implement new options to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction. modified: lib/timeline/optionsTimeline.js | Add options 'horizontalScrollKey' and 'horizontalScrollInvert'. modified: rollup.config.js | lint modified: types/index.d.ts | Add type definitions for options 'horizontalScrollKey' and 'horizontalScrollInvert'. Lint Changes - Fix eslint errors such as missing doc comments or faulty syntax where necessary. - Fix eslint error no-prototype-builtins - Fix eslint-disable-line comments being on the wrong line to suppress the stated rule.
Hi Team ,
I have a use case to implement both horizontal scroll and vertical scroll in a timeline.
Please suggest how we can achieve by changing config options or any other way.
i tried all the options which were mentioned in this vistimeline/issues space, but unable to get proper solution.
Currently i am trying with below options:
{
horizontalScroll: true,
verticalScroll: true,
stack: true,
min: moment(startDate).format(“YYYY-MM-DD”)
max: moment(endDate).format(“YYYY-MM-DD”)
orientation: top,
zoomKey: “ctrlKey”
}
Thanks in Advance 🥳
Regards
Sudheer
The text was updated successfully, but these errors were encountered: