feat: remove scroll position guard to enable infinite loading on any scroll
The conditional check `isScrolledPastHalf()` was commented out, removing the requirement that the user must scroll past the halfway point before extra content loads. Now `isLoadingExtra` is set to `true` immediately when the scroll handler fires, allowing infinite scroll to trigger on any scroll event rather than only after passing the 50% threshold.
This commit is contained in:
@@ -81,9 +81,9 @@
|
||||
if(isLoadingExtra){
|
||||
return
|
||||
}
|
||||
if(!isScrolledPastHalf()){
|
||||
return
|
||||
}
|
||||
//if(!isScrolledPastHalf()){
|
||||
// return
|
||||
// }
|
||||
isLoadingExtra = true
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user