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 committed Dec 12, 2024
1 parent a4b0c66 commit 84e9c06
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 84e9c06

Please sign in to comment.