toggleTouchMode
API reference for the "toggleTouchMode" method.
Enables or disables touch mode.
To call this method, select Enable touch interactions in the Developer Portal.

Usage

1
const canva = window.canva.init();
2
3
canva.onReady(async (opts) => {
4
// Enable touch mode
5
canva.toggleTouchMode(true);
6
7
// Disable touch mode
8
// canva.toggleTouchMode(false);
9
});
Copied!

Parameters

Name
Type
Required
Description
visible
boolean
Yes
Set to true to enable touch mode. Set to false to disable touch mode.

Returns

void
Last modified 7mo ago
Copy link