This answer was originally written for Firefox Legacy. The alternative add-ons for Firefox Quantum may be found in other answers.
The easiest way is probably to use the extension: SmoothWheel
The extension is no longer found on Mozilla Add-ons site but still available via home page at mozdev.org, which likely for Firefox 56 or older version only. This extension gives extended options to customize your scrolling experience, by controlling the step size and speed of scrolling. Have a look at screenshot below.

The default setting is somewhat smoother than before installing the Add-ons, but likely too fast for what you want. Try the following suggestion (tried by myself).
Scroll settings
Under Basic - Scroll, change accordingly:
Then, click Apply button to make changes effective. At this point, you may notice that the page "accelerates" depending on your scrolling gesture habit. For more consistent feel, continue with following steps.
Under Advanced - Advanced Scroll Settings, change accordingly:
- Adaptive-Duration:
Medium (x2.5)
--> [DISABLED]
Finally, click Apply button again. Now you will notice that the scrolling is more "even" and consistent at each steps.
Scroll experience
If you experience occasional short hangs, you might want to visit this page that explains about VSync and other issues.
Up to now I could not find a way to scroll exactly one line with firefox.
While this solution may not give you exactly one line in Firefox, 5 pixels
is the smallest step (followed by 1/20 page
) you could get with this Add-ons. And perhaps less risky than tweaking in about:config
.
From my testing experience scrolling on this Mozilla Contribute page (2015), 1/20 page
feels like something between 20 pixels
and 50 pixels
. That being said, 1/20 page
might scroll more or less, depending on page contents and font size.