event and flag for scrollbar presence