File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ export class DDDroppable extends DDBaseImplement implements HTMLElementExtendOpt
8484 protected _mouseEnter ( e : MouseEvent ) : void {
8585 // console.log(`${count++} Enter ${this.el.id || (this.el as GridHTMLElement).gridstack.opts.id}`); // TEST
8686 if ( ! DDManager . dragElement ) return ;
87+ // During touch drag operations, ignore real browser-generated mouseenter events (isTrusted: true).
88+ // Only process simulated mouseenter events (isTrusted: false) created by our touch handling code.
89+ // The browser can fire spurious mouseenter events when we dispatch simulated mousemove events.
90+ if ( isTouch && e . isTrusted ) {
91+ return
92+ }
8793 if ( ! this . _canDrop ( DDManager . dragElement . el ) ) return ;
8894 e . preventDefault ( ) ;
8995 e . stopPropagation ( ) ;
You can’t perform that action at this time.
0 commit comments