# Events

## Canvas&#x20;

### When Canvas Loads

![](/files/-MABXHB3DhD2pxLYICuI)

&#x20;Program an action after the canvas loads.

### When Canvas Touched

![](/files/-MABXP4m9HtbESq2mzqR)

Program an action when the user touches the canvas

## Sprites

Please note, that for the sprite events, event handlers can be configured to work with an entire type of sprite or just with one specific sprite.&#x20;

![](/files/-MABZNeNMhOl2DRYRSjg)

### Sprite Clicked&#x20;

![](/files/-MABYVLX_PIEmBQqacWB)

This event triggers when the sprite is clicked.

### Collision with Sprite&#x20;

![](/files/-MABYbQdlei-aaYbrql3)

This event triggers when the two sprites collide.

### Collision with Edge&#x20;

![](/files/-MABYmHESFe2vZv-mpcS)

This event triggers when the sprite collides with the edge.

### Sprite Dropped

![](/files/-MABYuy1oXPvBSVvER8J)

This event triggers when the user stops dragging the sprite.

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunkable.com/snap-to-place/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
