fixing pointer events and scrolling