mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
fd2ed9a1bc4a459d94da0174bd4d6116081fda06
When scrolling via the model layer, such as happens on autoscroll due to moving the cursor, we update the scroll position of the fake vertical scrollbar manually. When we receive the scroll event that results from this, we want to do nothing. The best way to determine whether we're getting a "real" scroll event from the user or feedback from setting the scrollTop ourselves is to compare the scrollTop to what's in the model. If the values are equal, there's no need to request an animation frame to assign it. This improves performance.
Atom — The hackable editor
Check out our guides and API documentation.
Installing
Download the latest Atom release.
Atom will automatically update when a new release is available.
Building
Follow the instructions in the build docs.
Description
Languages
JavaScript
88.3%
Less
8.7%
CoffeeScript
2.8%
Shell
0.1%
