Fork of ios-html5-drag-drop-shim by Tim Ruffles
npm install touchscreen-dnd-shimng2-dnd drag library.npm
npm install touchscreen-dnd-shim
@import "touchscreen-dnd-shim/default.css"
```
import { polyfill } from 'touchscreen-dnd-shim';
...
@Component(...)
export class DragTestComponent implements OnInit {
...
// constructor
constructor() {
polyfill({}); // options can be added, see docs for Tim Ruffles project
}
...
// prevent default on some drag events on dnd-droppable (important!)
public preventDefault(event) {
event.mouseEvent.preventDefault();
return false;
}
}
```
draggables drop here