Skip to content
Snippets Groups Projects
Commit a230a811 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: change calculation for handleScroll

parent cf0c4481
Branches
Tags
1 merge request!336Feature/cgu tutorials creation
......@@ -18,7 +18,7 @@ const GCUModal: React.FC = () => {
const handleScroll = (event: React.UIEvent<HTMLElement>) => {
const target = event.currentTarget
if (target.scrollHeight - target.scrollTop === target.clientHeight) {
if (target.scrollHeight - target.scrollTop <= target.clientHeight) {
setIsBottom(true)
setBottomReached(true)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment