pxlsspace / pxls-web

Web client for pxls.space
MIT License
4 stars 6 forks source link

Fix template dragging #9

Closed BlankParenthesis closed 4 months ago

BlankParenthesis commented 5 months ago

Ever since template dragging has existed in pxls, it has suffered the bug of dragging too fast leaving the template behind. This is because the cursor move events exceed the bounds of the element before it can be moved and doesn't catch the next event.

This fixes this by binding the move listener to the whole screen.