What about creating the event in plain JS without using Angulars DOM?

On Monday, April 18, 2016 at 2:24:46 PM UTC+2, Michael Burger wrote:
>
> I need to dispatch and Create a new DragEvent
>
>
>     var dispatchedDragEvent = DOM.createEvent('DragEvent');               
>      
>     dispatchedDragEvent.initDragEvent('dragstart', null, null, null, null, 
> null, null, null, null, null, null, null, null, null, null, null);         
>            
>     DOM.dispatchEvent(this.htmlElement, dispatchedDragEvent);
>
> but I get the error initDragEvent is not a function, because 
> DOM.createEvent('DravEvent') returns a object of Event and not 'DragEvent'
>
> Can someone help me to create manually a DragEvent and dispatch it?
>
> I need to convert a TouchStart to a DragStart.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to