Skip to main content

onDrop

This event is triggered when a dragged item is dropped on the canvas.

Parameters

NameTypeDescription
eventDragEventThe drag event.
filesFileTransfer[]The dropped files, if any.

Example

engine.events.on('onDrop', (_, files) => {
console.log('Dropped item:', files?.length ? files : 'No files provided');
});

Available on: Client