Skip to content

Commit 06396e6

Browse files
committed
fix: remove margin on the ghost element
1 parent f36ed2d commit 06396e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/draggable.directive.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ export class DraggableDirective implements OnInit, OnChanges, OnDestroy {
249249
width: `${rect.width}px`,
250250
height: `${rect.height}px`,
251251
zIndex: '10',
252-
cursor: this.dragCursor
252+
cursor: this.dragCursor,
253+
margin: '0'
253254
});
254255

255256
dragEnd$.subscribe(() => {

0 commit comments

Comments
 (0)