angular-gridster2
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -31,2 +31,3 @@ import { GridsterSwap } from './gridsterSwap.service'; | ||
mouseup: Function; | ||
cancelOnBlur: Function; | ||
touchmove: Function; | ||
@@ -33,0 +34,0 @@ touchend: Function; |
@@ -39,2 +39,3 @@ "use strict"; | ||
this.mouseup = this.gridsterItem.renderer.listen('document', 'mouseup', this.dragStopFunction); | ||
this.cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', this.dragStopFunction); | ||
this.touchmove = this.gridster.renderer.listen(this.gridster.el, 'touchmove', this.dragFunction); | ||
@@ -82,2 +83,3 @@ this.touchend = this.gridsterItem.renderer.listen('document', 'touchend', this.dragStopFunction); | ||
gridsterScroll_service_1.cancelScroll(); | ||
this.cancelOnBlur(); | ||
this.mousemove(); | ||
@@ -196,2 +198,3 @@ this.mouseup(); | ||
var cancelMouse = this.gridsterItem.renderer.listen('document', 'mouseup', cancelDrag); | ||
var cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', cancelDrag); | ||
var cancelTouchMove = this.gridsterItem.renderer.listen('document', 'touchmove', cancelMove); | ||
@@ -207,3 +210,5 @@ var cancelTouchEnd = this.gridsterItem.renderer.listen('document', 'touchend', cancelDrag); | ||
function cancelDrag() { | ||
console.log(arguments); | ||
clearTimeout(timeout); | ||
cancelOnBlur(); | ||
cancelMouse(); | ||
@@ -210,0 +215,0 @@ cancelTouchMove(); |
@@ -21,2 +21,3 @@ import { GridsterItemComponent } from './gridsterItem.component'; | ||
mouseup: Function; | ||
cancelOnBlur: Function; | ||
touchmove: Function; | ||
@@ -23,0 +24,0 @@ touchend: Function; |
@@ -40,2 +40,3 @@ "use strict"; | ||
this.mouseup = this.gridsterItem.renderer.listen('document', 'mouseup', this.dragStopFunction); | ||
this.cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', this.dragStopFunction); | ||
this.touchmove = this.gridster.renderer.listen(this.gridster.el, 'touchmove', this.dragFunction); | ||
@@ -125,2 +126,3 @@ this.touchend = this.gridsterItem.renderer.listen('document', 'touchend', this.dragStopFunction); | ||
this.mouseup(); | ||
this.cancelOnBlur(); | ||
this.touchmove(); | ||
@@ -306,2 +308,3 @@ this.touchend(); | ||
var cancelMouse = this.gridsterItem.renderer.listen('document', 'mouseup', cancelDrag); | ||
var cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', cancelDrag); | ||
var cancelTouchMove = this.gridsterItem.renderer.listen('document', 'touchmove', cancelMove); | ||
@@ -318,2 +321,3 @@ var cancelTouchEnd = this.gridsterItem.renderer.listen('document', 'touchend', cancelDrag); | ||
clearTimeout(timeout); | ||
cancelOnBlur(); | ||
cancelMouse(); | ||
@@ -320,0 +324,0 @@ cancelTouchMove(); |
{ | ||
"name": "angular-gridster2", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"license": "MIT", | ||
@@ -49,19 +49,19 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@angular/animations": "5.0.0", | ||
"@angular/cdk": "2.0.0-beta.12", | ||
"@angular/animations": "5.0.1", | ||
"@angular/cdk": "5.0.0-rc0", | ||
"@angular/cli": "1.5.0", | ||
"@angular/common": "5.0.0", | ||
"@angular/compiler": "5.0.0", | ||
"@angular/compiler-cli": "5.0.0", | ||
"@angular/core": "5.0.0", | ||
"@angular/forms": "5.0.0", | ||
"@angular/http": "5.0.0", | ||
"@angular/language-service": "5.0.0", | ||
"@angular/material": "2.0.0-beta.12", | ||
"@angular/platform-browser": "5.0.0", | ||
"@angular/platform-browser-dynamic": "5.0.0", | ||
"@angular/platform-server": "5.0.0", | ||
"@angular/router": "5.0.0", | ||
"@types/jasmine": "2.6.2", | ||
"@types/node": "8.0.47", | ||
"@angular/common": "5.0.1", | ||
"@angular/compiler": "5.0.1", | ||
"@angular/compiler-cli": "5.0.1", | ||
"@angular/core": "5.0.1", | ||
"@angular/forms": "5.0.1", | ||
"@angular/http": "5.0.1", | ||
"@angular/language-service": "5.0.1", | ||
"@angular/material": "5.0.0-rc0", | ||
"@angular/platform-browser": "5.0.1", | ||
"@angular/platform-browser-dynamic": "5.0.1", | ||
"@angular/platform-server": "5.0.1", | ||
"@angular/router": "5.0.1", | ||
"@types/jasmine": "2.6.3", | ||
"@types/node": "8.0.51", | ||
"codelyzer": "4.0.1", | ||
@@ -68,0 +68,0 @@ "core-js": "2.5.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169712
2961