mouse down, move and scroll event functionality