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 Nov 28, 2024
1 parent d2a4634 commit 3aebe09
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 3aebe09

Please sign in to comment.