Skip to content

Commit

Permalink
fix(): Fixed a bug mouse cursor accurately reverts back after single …
Browse files Browse the repository at this point in the history
…list reorder operation.
  • Loading branch information
akserg committed Apr 7, 2017
1 parent aecbbbc commit 6c08842
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ class Widget {
# Credits
- [Francesco Cina](https://github.com/ufoscout)
- [Valerii Kuznetsov](https://github.com/solival)
- [Shane Oborn](https://github.com/obosha)

# License
[MIT](/LICENSE)
3 changes: 3 additions & 0 deletions src/abstract.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ export abstract class AbstractComponent {
constructor(elemRef: ElementRef, public _dragDropService: DragDropService, public _config: DragDropConfig,
private _cdr: ChangeDetectorRef) {

// Assign default cursor unless overridden
this._defaultCursor = _config.defaultCursor;
this._elem = elemRef.nativeElement;
this._elem.style.cursor = this._defaultCursor; // set default cursor on our element
//
// DROP events
//
Expand Down
1 change: 1 addition & 0 deletions src/dnd.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ export class DragDropConfig {
public dropEffect: DataTransferEffect = DataTransferEffect.MOVE;
public dragCursor: string = "move";
public dragImage: DragImage;
public defaultCursor: string = "pointer";
}

0 comments on commit 6c08842

Please sign in to comment.