JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Gantt › Horizontal scroll by MouseWheel or TouchPad gestures
Tagged: Gantt Chart Horizontal Scroll
Hello!
How can I make a horizontal scroll work without a scrollbar.
I need horizontal scrolling to work on the mouse wheel and touchpad gestures.
Thanks!
Hi,
To scroll horizontally with the mouse wheel, you should hold the shift button. The same goes for smart gestures.
Best Regards, Svetoslav Borislavov
Smart UI Team https://www.htmlelements.com/
Hi Svetoslav,
Is there a way to override that requirement i.e. to hold the ‘shift’ button to scroll with the mouse wheel ?
Hi Shubham,
You can manually implement the scroll through the “wheel” event.
Here is an example – codepen
Best Regards, Ivan Peevski