[SDL] Fixed broken scrolling logic