Skip to content

Commit 23195f9

Browse files
tweaked scrolling
1 parent 1b712bd commit 23195f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/design-library-list/use-auto-scroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export const useAutoScroll = ( hostRef, shadowBodySizeRef, selectedTab ) => {
2828

2929
// Bell curve: faster ramp up, starts at reasonable speed, peaks in middle
3030
// Creates a more aggressive acceleration and deceleration pattern
31-
const bellCurve = 4 * progress * ( 1 - progress ) // Peaks at 2.0 in the middle
32-
const baseSpeed = 15 // Base speed multiplier
31+
const bellCurve = 8 * progress * ( 1 - progress ) // Peaks at 2.0 in the middle
32+
const baseSpeed = 20 // Base speed multiplier
3333
const scrollStep = Math.max( baseSpeed * bellCurve, 5 ) // Minimum 1.5px for better start
3434

3535
// Apply the scroll step

0 commit comments

Comments
 (0)