Closed unnatishah96 closed 6 years ago
I followed polyfill mentioned in the README. i used this module ( great module thank you) in Angular 8.
i added this to my component.ts
import { polyfill } from 'mobile-drag-drop';
import { scrollBehaviourDragImageTranslateOverride } from 'mobile-drag-drop/scroll-behaviour';
ngOnInit() {
polyfill( {
// use this to make use of the scroll behaviour
dragImageTranslateOverride: scrollBehaviourDragImageTranslateOverride
} );
window.addEventListener( 'touchmove', () => { }, { passive: false } );
}
And it worked like a charm.. i will keep testing this in different browsers and will let you know.
I am not using angular2-material. Is there any way to use this drag and drop in touch screen devices ?