layerssss / paste.js

read image/text data from clipboard (cross-browser)
http://layerssss.github.io/paste.js/
MIT License
463 stars 94 forks source link

Paste Location in Demo #52

Open ctietgen opened 7 years ago

ctietgen commented 7 years ago

I was testing the demo in various browsers and got different results for where the image was pasted.

In the following browsers I clicked in the blank area below the 3rd div and the pasted image appeared below the 3rd div.

In the following browsers I clicked below the 3rd div and the pasted image appeared above the 3rd div.

For IE11 11.1480.14393.0 the image wouldn't past unless I clicked into one of the 3 divs on screen.

For all browsers, clicking inside one for the 3 sample divs, the image is pasted below the selected div.

I would image the different paste locations when clicking below the 3rd div is just a quirk in the demo, right?

layerssss commented 7 years ago

@CMTietgen True, that's a quirk, (not sure in the library or just in the demo), since you shouldn't be able to paste if you click below the div. I'll look into it.