Skip to content

Commit 6c08842

Browse files
committed
fix(): Fixed a bug mouse cursor accurately reverts back after single list reorder operation.
1 parent aecbbbc commit 6c08842

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ class Widget {
682682
# Credits
683683
- [Francesco Cina](https://github.com/ufoscout)
684684
- [Valerii Kuznetsov](https://github.com/solival)
685+
- [Shane Oborn](https://github.com/obosha)
685686

686687
# License
687688
[MIT](/LICENSE)

src/abstract.component.ts

+3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ export abstract class AbstractComponent {
9494
constructor(elemRef: ElementRef, public _dragDropService: DragDropService, public _config: DragDropConfig,
9595
private _cdr: ChangeDetectorRef) {
9696

97+
// Assign default cursor unless overridden
98+
this._defaultCursor = _config.defaultCursor;
9799
this._elem = elemRef.nativeElement;
100+
this._elem.style.cursor = this._defaultCursor; // set default cursor on our element
98101
//
99102
// DROP events
100103
//

src/dnd.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ export class DragDropConfig {
3838
public dropEffect: DataTransferEffect = DataTransferEffect.MOVE;
3939
public dragCursor: string = "move";
4040
public dragImage: DragImage;
41+
public defaultCursor: string = "pointer";
4142
}

0 commit comments

Comments
 (0)