Skip to content

Commit

Permalink
feat: Fix image resizing issue - EXO-74758 - Meeds-io/MIPs#145 (#672)
Browse files Browse the repository at this point in the history
Prior to this change, resizing an inserted image in the editor was not
possible. The resizer remained attached to the mouse and only detached
when clicking outside the editor. This change addresses the issue by
attaching the pointerup event to the document instead of the mouseup
event
  • Loading branch information
sofyenne authored and rdenarie committed Dec 17, 2024
1 parent a4a7904 commit ab3bec7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@
attachToDocuments( 'mousemove', onMouseMove, listeners );

// Clean up the mousemove listener. Update widget data if valid.
attachToDocuments( 'mouseup', onMouseUp, listeners );
attachToDocuments( 'pointerup', onMouseUp, listeners );

// The entire editable will have the special cursor while resizing goes on.
editable.addClass( cursorClass );
Expand Down

0 comments on commit ab3bec7

Please sign in to comment.