Skip to content

Commit

Permalink
fix(drag): disable user dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Jun 6, 2016
1 parent 0959a12 commit 053fb0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resizable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ export class Resizable implements OnInit {
top: this.elm.nativeElement.style.top,
transform: this.elm.nativeElement.style.transform,
width: `${startingRect.width}px`,
height: `${startingRect.height}px`
height: `${startingRect.height}px`,
'user-drag': this.elm.nativeElement.style['user-drag']
}
};
this.renderer.setElementStyle(this.elm.nativeElement, 'position', 'fixed');
this.renderer.setElementStyle(this.elm.nativeElement, 'left', `${currentResize.startingRect.left}px`);
this.renderer.setElementStyle(this.elm.nativeElement, 'top', `${currentResize.startingRect.top}px`);
this.renderer.setElementStyle(this.elm.nativeElement, 'user-drag', 'none');
this.onResizeStart.emit({
edges: resizeEdges,
rectangle: startingRect
Expand Down

0 comments on commit 053fb0e

Please sign in to comment.