vueuse / vueuse

Collection of essential Vue Composition Utilities for Vue 2 and 3

Home Page:https://vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Proposal: useDragScroll that allows to scroll horizontally/vertically within a designated container using a mouse

gigabites19 opened this issue · comments

commented

Clear and concise description of the problem

I want to be able to scroll within a container using mouse because it is more convenient in certain cases, like when navigating a deeply nested representation of a directory tree structure.

Suggested solution

A composable function that accepts reference to the scrollable container and registers event-listeners for mouse events and scroll accordingly. With a possible configuration parameter for sensitivity.

Alternative

I've come across this and a couple other libraries but it would be nice to have it in vueuse: https://github.com/asvd/dragscroll

Additional context

No response

Validations