You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that it was kinda difficult for me to use the package in my recent app; I devised a way to use a custom hook with the smooth scrollbar package. View this demo in smaller devices here
`
import useScroll from "./useScroll";
const BillingsTable = () => {
const docRef = useRef(null);
const options = {
damping: 0.2, // Adjust the damping effect
thumbMinSize: 5, // Set a minimum size for the thumb
renderByPixels: true, // Ensure pixel-based scrolling
alwaysShowTracks: false, // Show scrollbar tracks always
continuousScrolling: true, // Enable continuous scrolling
};
useScroll(docRef, options);
return (
)
`
I have set up a local working demo in my PC; I will like to contribute.
The text was updated successfully, but these errors were encountered:
Motivation
love of the project.
Proposal
I noticed that it was kinda difficult for me to use the package in my recent app; I devised a way to use a custom hook with the smooth scrollbar package. View this demo in smaller devices here
`
import useScroll from "./useScroll";
const BillingsTable = () => {
const docRef = useRef(null);
const options = {
damping: 0.2, // Adjust the damping effect
thumbMinSize: 5, // Set a minimum size for the thumb
renderByPixels: true, // Ensure pixel-based scrolling
alwaysShowTracks: false, // Show scrollbar tracks always
continuousScrolling: true, // Enable continuous scrolling
};
useScroll(docRef, options);
return (
I have set up a local working demo in my PC; I will like to contribute.
The text was updated successfully, but these errors were encountered: