Solved the problem that the scroll event did not fire in JQuery

Overview

I'm making a rails app It is the cause and remedy when the infinite scroll using the scroll event trigger suddenly stops working at one time.

Cause

css property

auto;


 This was the cause.
 Apparently, the scroll event does not occur when scroll (scroll to deal with the element if it is out of the way) is specified in overflow.
 It seems that the scroll event does not fire in Chrome that I was using because I specified auto.

## solution

#### **`overflow: auto;Or overflow: scroll;Erase`**

Recommended Posts

Solved the problem that the scroll event did not fire in JQuery
Solved the problem that all the data in the table was displayed
[Gradle] The story that the class file did not exist in the jar file
Solved the problem that profile and logout were not displayed on the screen after signup.
Solved the problem that the test could not be executed from the command line with spring-boot-starter-test
Solved the problem that apt-get update could not be executed on Ubuntu (Virtual Box) on Windows.
[Rails] Record when the event did not fire when the javascript file name is the same as the controller
The case that @Autowired could not be used in JUnit5
[Rails] The problem that pry-byebug does not stop through breakpoints
[Rails] Solving the problem that session timeout does not work
About the problem that the image is not displayed after AWS deployment
How to fix the problem that Aptana Studio does not start
The problem that XML attributes are sorted arbitrarily in Android Studio
Problem that the attribute of User model becomes nil in ActionMailer
[Swift] Variable shapes that were not taught in the introductory book
The story that the build error did not stop when using Eclipse 2020
How to solve the problem that it is not processed normally when nesting beans in Spring Batch
Expression used in the fizz_buzz problem
The problem that the contents of params are completely displayed in the [Rails] view
About the problem that the server can not be started with rails s
[Rails] About the error that the image is not displayed in the production environment
Ignore parameters that do not exist in the model with ObjectMapper # readValue
The story that the Servlet could not be loaded in the Java Web application
After verifying the Monty Hall problem with Ruby, a story that I could understand well and did not understand well
In WSL2, when I did `docker-compose up`, I got an error saying that the sh file was not found.