Web: fix Suggested Accounts tabs end of scroll detection (#8939)
This commit is contained in:
committed by
GitHub
parent
1c78f36a51
commit
0bda727e8b
@@ -90,7 +90,7 @@ export function InterestTabs({
|
||||
}
|
||||
|
||||
const canScrollLeft = scrollX > 0
|
||||
const canScrollRight = scrollX < contentWidth - totalWidth
|
||||
const canScrollRight = Math.ceil(scrollX) < contentWidth - totalWidth
|
||||
|
||||
const cleanupRef = useRef<(() => void) | null>(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user