PP.isDownOn

Syntax

isDownOn(elem: HTMLElement, event);

Parameters

elem. DOM element.

event. Mouse cursor event.

Description

The isDownOn method checks if the mouse cursor was over the element when the event was fired.

Comments

This method returns True if the mouse cursor was over the element at the event moment, and False if it was somewhere else.

Example

The example of use is given in the with description of the PP.calculateMouseCoords method.

See also:

PP