Firing a drag event programmatically while having access to theevent.dataTransfer object?

P

Peter

Does anyone has inside knowledge on whether this is possible?

I've made a somewhat reduced example here: http://jsbin.com/usiqu4/3

Notice that when dragstart event is fired programmatically,
"e.dataTransfer is not available" will appear in console.

I've only tested it with Firefox and Safari on OSX.

Any input will be appreciated!
 
D

David Mark

Peter said:
Does anyone has inside knowledge on whether this is possible?

I've made a somewhat reduced example here: http://jsbin.com/usiqu4/3

Notice that when dragstart event is fired programmatically,
"e.dataTransfer is not available" will appear in console.

Sounds as if whatever event object you created was not up to snuff for
the dragstart event. I would read the documentation for that event to
see what its exact requirements are. And there is the possibility that
it is impossible to create an appropriate event object for this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top