angular-gridster2
Advanced tools
Comparing version 5.3.3 to 5.3.4
@@ -33,2 +33,3 @@ import { NgZone } from '@angular/core'; | ||
mouseup: Function; | ||
mouseleave: Function; | ||
cancelOnBlur: Function; | ||
@@ -35,0 +36,0 @@ touchmove: Function; |
@@ -57,2 +57,3 @@ "use strict"; | ||
this.mouseup = this.gridsterItem.renderer.listen('document', 'mouseup', this.dragStopFunction); | ||
this.mouseleave = this.gridsterItem.renderer.listen('document', 'mouseleave', this.dragStopFunction); | ||
this.cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', this.dragStopFunction); | ||
@@ -107,2 +108,3 @@ this.touchend = this.gridsterItem.renderer.listen('document', 'touchend', this.dragStopFunction); | ||
this.mouseup(); | ||
this.mouseleave(); | ||
this.touchmove(); | ||
@@ -133,8 +135,16 @@ this.touchend(); | ||
this.gridsterItem.setSize(); | ||
this.push.restoreItems(); | ||
this.swap.restoreSwapItem(); | ||
this.push.destroy(); | ||
delete this.push; | ||
this.swap.destroy(); | ||
delete this.swap; | ||
if (this.push) { | ||
this.push.restoreItems(); | ||
} | ||
if (this.swap) { | ||
this.swap.restoreSwapItem(); | ||
} | ||
if (this.push) { | ||
this.push.destroy(); | ||
delete this.push; | ||
} | ||
if (this.swap) { | ||
this.swap.destroy(); | ||
delete this.swap; | ||
} | ||
}; | ||
@@ -150,8 +160,16 @@ GridsterDraggable.prototype.makeDrag = function () { | ||
this.gridsterItem.checkItemChanges(this.gridsterItem.$item, this.gridsterItem.item); | ||
this.push.setPushedItems(); | ||
this.swap.setSwapItem(); | ||
this.push.destroy(); | ||
delete this.push; | ||
this.swap.destroy(); | ||
delete this.swap; | ||
if (this.push) { | ||
this.push.setPushedItems(); | ||
} | ||
if (this.swap) { | ||
this.swap.setSwapItem(); | ||
} | ||
if (this.push) { | ||
this.push.destroy(); | ||
delete this.push; | ||
} | ||
if (this.swap) { | ||
this.swap.destroy(); | ||
delete this.swap; | ||
} | ||
}; | ||
@@ -238,2 +256,3 @@ GridsterDraggable.prototype.calculateItemPosition = function () { | ||
var cancelMouse = this.gridsterItem.renderer.listen('document', 'mouseup', cancelDrag); | ||
var cancelMouseLeave = this.gridsterItem.renderer.listen('document', 'mouseleave', cancelDrag); | ||
var cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', cancelDrag); | ||
@@ -253,2 +272,3 @@ var cancelTouchMove = this.gridsterItem.renderer.listen('document', 'touchmove', cancelMove); | ||
cancelMouse(); | ||
cancelMouseLeave(); | ||
cancelTouchMove(); | ||
@@ -255,0 +275,0 @@ cancelTouchEnd(); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterDraggable":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./gridsterItemComponent.interface","name":"GridsterItemComponentInterface","line":47,"character":28},{"__symbolic":"reference","module":"./gridster.interface","name":"GridsterComponentInterface","line":47,"character":70},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":47,"character":112}]}],"destroy":[{"__symbolic":"method"}],"dragStart":[{"__symbolic":"method"}],"dragMove":[{"__symbolic":"method"}],"calculateItemPositionFromMousePosition":[{"__symbolic":"method"}],"dragStop":[{"__symbolic":"method"}],"cancelDrag":[{"__symbolic":"method"}],"makeDrag":[{"__symbolic":"method"}],"calculateItemPosition":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"dragStartDelay":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterDraggable":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./gridsterItemComponent.interface","name":"GridsterItemComponentInterface","line":48,"character":28},{"__symbolic":"reference","module":"./gridster.interface","name":"GridsterComponentInterface","line":48,"character":70},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":48,"character":112}]}],"destroy":[{"__symbolic":"method"}],"dragStart":[{"__symbolic":"method"}],"dragMove":[{"__symbolic":"method"}],"calculateItemPositionFromMousePosition":[{"__symbolic":"method"}],"dragStop":[{"__symbolic":"method"}],"cancelDrag":[{"__symbolic":"method"}],"makeDrag":[{"__symbolic":"method"}],"calculateItemPosition":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"dragStartDelay":[{"__symbolic":"method"}]}}}}] |
{ | ||
"name": "angular-gridster2", | ||
"version": "5.3.3", | ||
"version": "5.3.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
195656
3600