Skip to content

Commit

Permalink
[SDL] Fixed broken scrolling logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdenCullen committed Nov 15, 2014
1 parent c173b93 commit e3cb87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dash/graphics/adapters/sdl.d
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public:
break;

case SDL_MOUSEWHEEL:
Mouse.setAxisState( Mouse.Axes.ScrollWheel, Mouse.getAxisState( Mouse.Axes.ScrollWheel ) + ( ( cast(int)event.wheel.y >> 16 ) / 120 ) );
Mouse.setAxisState( Mouse.Axes.ScrollWheel, Mouse.getAxisState( Mouse.Axes.ScrollWheel ) + event.wheel.y );
break;

case SDL_APP_TERMINATING:
Expand Down

0 comments on commit e3cb87f

Please sign in to comment.