Firefox scrolling problem and bug fix when clicking first card