fix scrolling and touch events