Skip to content

Commit c38df7d

Browse files
chore: bump version to 5.0.3 and update CHANGELOG
- Fixed scrollbar interactivity (drag thumb, click track) - Added 10 new tests for scrollbar interaction - Migrated examples/simple to Vite
1 parent a6d063d commit c38df7d

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [5.0.3] - 2025-12-16
6+
7+
### Fixed
8+
- 🖱️ **Scrollbar Interactivity**: Fixed critical issue where dragging the scrollbar thumb or clicking on the track did not scroll content (#1)
9+
- 📜 **Vertical/Horizontal Scroll**: Both vertical and horizontal scrollbars now properly respond to user interaction
10+
11+
### Added
12+
- 🧪 **Comprehensive Tests**: Added 10 new tests for scrollbar interaction functionality:
13+
- Track click handling (vertical/horizontal)
14+
- Thumb drag functionality (vertical/horizontal)
15+
- Drag state management (userSelect, cleanup)
16+
- Event listener attachment/removal
17+
- Auto-hide track mouse enter/leave
18+
- Cleanup on unmount during active drag
19+
20+
### Changed
21+
-**Event Handling**: Implemented proper event listener attachment using wrapper functions for better TypeScript compatibility
22+
- 🔧 **Examples**: Migrated `examples/simple` from Webpack to Vite for easier development
23+
524
## [5.0.2] - 2025-11-11
625

726
### Fixed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dev-ahmed-mahmoud/react-custom-scrollbars",
3-
"version": "5.0.2",
3+
"version": "5.0.3",
44
"description": "Modern React scrollbars component with TypeScript support and React 19 compatibility",
55
"type": "module",
66
"main": "./dist/index.cjs",
@@ -59,7 +59,7 @@
5959
"contributors": [
6060
{
6161
"name": "Malte Wessel",
62-
"email": "malte.wessel@gmail.com",
62+
"email": "malte.wessel@gmail.com",
6363
"url": "https://github.com/malte-wessel"
6464
}
6565
],
@@ -97,4 +97,4 @@
9797
"react": "^18.0.0 || ^19.0.0",
9898
"react-dom": "^18.0.0 || ^19.0.0"
9999
}
100-
}
100+
}

0 commit comments

Comments
 (0)