Improve the smoothness of scrolling for video categories
Adjusted auto-scroll interval and amount in `netflix-grid.tsx` to increase animation frame rate from ~60fps to ~120fps for a smoother visual experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/P3O2FU7
This commit is contained in:
parent
29416c68b6
commit
6407a4770b
@ -160,10 +160,10 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
|
||||
}
|
||||
scrollIntervalRef.current = setInterval(() => {
|
||||
if (scrollRef.current) {
|
||||
const scrollAmount = direction === 'left' ? -3 : 3;
|
||||
const scrollAmount = direction === 'left' ? -1.5 : 1.5;
|
||||
scrollRef.current.scrollLeft += scrollAmount;
|
||||
}
|
||||
}, 16); // ~60fps
|
||||
}, 8); // ~120fps for smoother animation
|
||||
};
|
||||
|
||||
const stopAutoScroll = () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user