convert

Converts a DOM MouseEvent to a ZMouseEvent.

Return

A ZMouseEvent with calculated position, movement, velocity, and acceleration

Parameters

event

The DOM MouseEvent to convert

type

The type of mouse event (DOWN, UP, MOVE)