lock and unlock screen on scroll