Enable touch using Hammer.js. Fire drag events on press
I am using angular2-grid in my angular2 web application and it is working prefectly. Now I need to enable touch so that drag and drop can be done using mobile devices as well. To this end I have integrated Hammer.js.
Now, I need to fire onDragStart and onDragStop events on the Hammer.js' press and pressup events. How do I achieve this?
Here is a sample of firing one event inside of another. What is the equivalent on MouseEvent in angular-grid?
I've fixed the grid so that it will work with touch events now so hopefully you can use the regular mouse event stuff. I'll do a publish when I'm done with my current batch of changes and you can give it a go :)
Ben, thanks very much for looking into this issue immediately. Can you please publish the package on npm and let me know? I am very eager to use this.
Yeah, there's a few other things I want to look into first, but I'll try and get it published by end of day today
This should be published. Is it working correctly for you now?