pointerDevice Property

Description

This property defines the pointer mode the application will run in. This mode adds tweaks, enhancements and optimizations for various pointer device types.

Options

The following String values are valid for this property:

The default is auto if the device supports touch and mouse if it does not.

Note — This property must be set before the startup() method has been called. Setting it after startup has been called will result in an exception.

Use the set method of the ESDWeb object to set this property as illustrated below.

Example

To set the pointerDevice property:

editor = new window.__editor(undefined, document.getElementById('editor-node'));

editor.set('pointerDevice', 'touch');

/* set other properties here */

editor.startup(...);

To get the pointerDevice property:

var pointerDevice = editor.get('pointerDevice');