Changed pageX and pageY event properties to offsetX and offsetY.