Created a checkpoint
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/yexZbDm
This commit is contained in:
parent
3e6d01c2ac
commit
75e3d4b1f9
@ -154,8 +154,8 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
|
||||
if (direction === 'right' && newX <= -singleSetWidth * 2) {
|
||||
// When moved past second copy, wrap to start of first copy
|
||||
return newX + singleSetWidth;
|
||||
} else if (direction === 'left' && newX > 0) {
|
||||
// When moving left past start, wrap to end of second copy
|
||||
} else if (direction === 'left' && newX >= 0) {
|
||||
// When moving left past first copy, wrap to end of second copy
|
||||
return newX - singleSetWidth;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user