rommguy / react-custom-scroll

Easily customize the browser scroll bar with native OS scroll behavior
MIT License
555 stars 66 forks source link

how this library manage event? #126

Closed qkrdmstlr3 closed 7 months ago

qkrdmstlr3 commented 1 year ago

Hi! This is amazing library! I had a question while looking at the code, so I left an issue

I wonder how this library control dom's events. When I register and output an event in my React proejct, react's syntheticEvent comes out. However, if I trigger a click event in react-custom-scroll, the output is as shown in the picture below.

스크린샷 2023-01-15 오전 2 04 34

I wonder how this library change event.

rommguy commented 10 months ago

Nothing special actually, simply react syntax