update two direction scroll