Move logic from startDrag
and moveDrag
into a utils file
#7926
Labels
issue: feature request
Describes a new feature and why it should be added
size: small
Bugs that can be picked up and completed in 1-3 days
type: cleanup
Check for duplicates
Problem
The
startDrag
andmoveDrag
methods help you track the state of a drag (e.g. the total delta). Currently they exist on the workspace, and record state on the workspace, even though these methods are only used for resizing comments (block and workspace). E.g. block drags and workspace drags use other methods.Request
Pull the logic from these methods into a utils file. Unify with other code for recording drags if possible and useful. Have these methods defer to the utils file (since they are public and deleting them is a breaking change).
Alternatives considered
Leave as is because it's not a big deal.
Additional context
No response
The text was updated successfully, but these errors were encountered: