MouseTracker.js


Object: MouseTracker

Object Description: Mousetracker is responsible for tracking current and
previous mouse coordinates, so that they can be used
for moving and resizing windows...
As well as for tracking which window is being moved
or resized.
Example:


Method: mouseMove
Description: tracks mouse movement
- if a frame is being dragged or resized, it
tells the frame how much to move or resize
  • Parameter
    : evt - event triggering action


Method: mouseUp
Description: - User is no longer dragging/resizing a frame
- Restore the frame to it's usual state and
reset variables related to mouse movement

  • Parameter
    : evt - event triggering the action