figured out scroll event in firefox and safari