TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

onEnableMouseEvent

onEnableMouseEvent

The function called to turn the mouse or touchpad events on/off.

Parameters:

Name Type Description
isEnabled boolean

Defines if the mouse or touchpad is enabled (true) or not (false).

Example

Copy code
window.Asc.plugin.onEnableMouseEvent = function(isEnabled) {
    var _frames = document.getElementsByTagName("iframe");
    if (_frames && _frames[0]) {
        _frames[0].style.pointerEvents = isEnabled ? "none" : "";
    }
};