Make compass icon responsive to scroll direction