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" : "";
}
};