added scroll direction, not working yet