toggleTouchMode
API reference for the "toggleTouchMode" method.
To call this method, select Enable touch interactions in the Developer Portal.
const canva = window.canva.init();
canva.onReady(async (opts) => {
// Enable touch mode
canva.toggleTouchMode(true);
// Disable touch mode
// canva.toggleTouchMode(false);
});
Name | Type | Required | Description |
---|---|---|---|
visible | boolean | Yes | Set to true to enable touch mode. Set to false to disable touch mode. |
void
Last modified 1yr ago