MurhafSousli / ngx-scrollbar

Custom overlay-scrollbars with native scrolling mechanism
https://ngx-scrollbar.netlify.app/
MIT License
618 stars 99 forks source link

Support for mouse wheel scrolling for x-axis #478

Closed Ab-Hanan01 closed 1 year ago

Ab-Hanan01 commented 1 year ago

Feature Description

Does it support mouse wheel scrolling for horizontal scrollbar? If not could this feature be easily added and how

Use Case

When vertical scrollbar is disabled I want to be able to use mouse wheel for horizontal scrolling.

ysk3a commented 1 year ago

Although I would like this feature as well, despite it being a niche use case, wouldn't that feature be a problem or a bad idea since you would have to handle behavior depending on the device type? mouse, trackpad, touch, etc. I'm not too familiar with this but it was something that came into mind since you would be rotating an expected behavior? For now I guess you would have to stick with os/browser shift+mousewheel interaction.

MurhafSousli commented 1 year ago

@ysk3a I agree, this can be confusing, the scrollbar plugin should mimic the native behavior, developers who desire that functionality can write their own code to move the scrollable container horizontally using the mouse wheel but for this plugin, I believe it's out of the scope