pxlsspace / pxls-web

Web client for pxls.space
MIT License
9 stars 14 forks source link

Fix template dragging #9

Closed BlankParenthesis closed 8 months ago

BlankParenthesis commented 9 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.