Playing with drag and drop and while I can seem to drag fine, I can't seem to drop.
Here's my playground: http://jsfiddle.net/KZ8RD/1/
Basically, the dragstart
and dragend
events on the draggable node seem to fire fine. But I have yet to trigger any event on that target nodes.
# Source handlers
$('#source')
.on('dragstart', (e) -> log '#source dragstart', this, e)
.on('dragend', (e) -> log '#source dragend', this, e)
# Target Handlers
$('#cells td')
.on('dragenter', (e) -> log 'target dragenter', this, e)
.on('dragleave', (e) -> log 'target dragleave', this, e)
.on('dragover', (e) -> log 'target dragover', this, e)
.on('drop', (e) -> log 'target drop', this, e)
So what conditions need to exist for the target's dragenter
and drop
events to fire? I'm clearly missing some of them.