Skip to content

Commit

Permalink
fix(ui): Fix blurriness with smooth scroll (endless-sky#9410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hurleveur authored Oct 7, 2023
1 parent d0b3a70 commit 791a39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ShopPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace {
if(dy)
{
// Handle small increments.
if(fabs(dy) < 6)
if(fabs(dy) < 6 && fabs(dy) > 1)
smoothScroll += copysign(1., dy);
// Keep scroll value an integer to prevent odd text artifacts.
else
Expand Down

0 comments on commit 791a39b

Please sign in to comment.