fix exit bug
update scrolling.cpp