yeah that's also good for me,
But I checked 10 minutes ago
var event = document.createEvent('DragEvent')
event.initDragEvent(...)
is not supported by Chrome, but only on Firefox!! So can you help me check
how to creating the event in plain JS for Firefox and Chrome?
Am Mittwoch, 20. April 2016 09:02:08 UTC+2 schrieb Günter Zöchbauer:
>
> 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.