Fix case where scroll parent is window