react-indiana-drag-scroll
react-indiana-drag-scroll copied to clipboard
React component which implements scrolling via holding the mouse button or touch
I planned to use this great tool for creating a carousel. I didn't want a continous scroll but rather the scrolling to snap to the items with scroll-snap-type: x mandatory....
if `hideScrollbars` is true, then you can no longer scroll horizontally with a trackpad or wheel. If so, it's probably worth leaving a note in documentation As a side note,...
Some library or user created components will create one or more elements to wrap long text content in it, such as [Grsmto/simplebar](github.com/Grsmto/simplebar), I call this "higher order element". In [this...
see #51
Hey guys - is it possible to include some level of animated inertia to the drag? Also any possibility of including scroll capture in the element as well?
Hey, i have problem, when there is input inside ScrollContainer.... and i am clicking inside this container (outside the input)... input event onBlur isn't called... Any workaround for this ?...
Hi again! If a parent has style of `direction: rtl` on Edge the dragging movement becomes inverse, here check this in Edge: https://6vfmu.csb.app/ ([editor view](https://codesandbox.io/s/gallant-montalcini-6vfmu?fontsize=14))
hey I noticed that an alpha of a new version had appeared and decided to try it 1. new api with ``` const scrollContainer = useScrollContainer(options); return ``` not convenient...
I'm using Tailwind-css on react, and can replicate with this code: ```typescript import React from "react"; import ScrollContainer from "react-indiana-drag-scroll"; const Component = (args: any) => { return ( Stuff...
Using: ```json "react-indiana-drag-scroll": "^3.0.3-alpha" ``` With the following component: ```js export default function App() { const [bool, setBool] = useState(false); return ( setBool((prev) => !prev)}>Re-render {Array.from({ length: 20 }, (_,...