Skip to content

Commit

Permalink
fix(): add pointer data to drop event (fabricjs#8156)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 authored and frankrousseau committed Jan 6, 2023
1 parent efc7bd7 commit b81844d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mixins/canvas_events.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@
* @param {Event} e
*/
_onDrop: function (e) {
var options = this._simpleEventHandler('drop:before', e, { dragSource: this._dragSource });
var options = this._simpleEventHandler('drop:before', e, {
dragSource: this._dragSource,
pointer: this.getPointer(e)
});
// will be set by the drop target
options.didDrop = false;
// will be set by the drop target, used in case options.target refuses the drop
Expand Down

0 comments on commit b81844d

Please sign in to comment.