Socket
Socket
Sign inDemoInstall

c2s-ngx-dnd

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.18 to 1.2.19

13

directives/dnd-list.js

@@ -44,3 +44,3 @@ import { Directive, Input, Output, ElementRef, HostListener, EventEmitter } from '@angular/core';

DndList.prototype.lastDragEvent = new DragEvent();
DndList.prototype.handleDragOver = function (event) {

@@ -52,2 +52,11 @@ // event.stopPropagation();

event = event['originalEvent'] || event;
if(!!this.lastDragEvent && this.lastDragEvent.clientX === event.clientX && this.lastDragEvent.clientY === event.clientY) {
end = new Date();
console.log('cursor don\'t moved -> ellapsed :' + (end-start)/1000 + ' s - target : ' + event.target.innerText);
return true;
}

@@ -101,4 +110,4 @@ var mimeType = this.getMimeType(event.dataTransfer.types);

console.log('end -> ellapsed :' + (end-start)/1000 + ' s - target : ' + event.target.innerText);
this.lastDragEvent = event;
return false;

@@ -105,0 +114,0 @@ };

2

package.json

@@ -53,3 +53,3 @@ {

},
"version": "1.2.18"
"version": "1.2.19"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc