Skip to content

Conversation

@almarklein
Copy link
Member

@almarklein almarklein commented Oct 28, 2025

This example is very useful to determine whether the more advanced backends, like the Pyodide one, but also future remote backends and jupyter_rfb etc. actually are snappy.

Plus it demonstrates good practices for implementing dragging.

@almarklein almarklein merged commit cced105 into main Oct 28, 2025
12 checks passed
@almarklein almarklein deleted the drag-example branch October 28, 2025 09:42
blocks[:] = [block.copy() for block in initial_blocks]
elif key == " ":
blocks.append(
[block_size // 2 + 10, block_size // 2 + 10, (255, 255, 255, 255)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pressing space breaks, as this misses one element in the list. I think it should be [block_size // 2 + 10, block_size // 2 + 10, block_size, (255, 255, 255, 255)]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. I fixed it in #115.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants