dont add events if no scrollbar is needed