Removed ability to drag n' drop text; drag n' drop ui no longer appears when non-files are dragged

Этот коммит содержится в:
Reed Garmsen
2016-01-06 14:18:05 -08:00
родитель 5bcb9f1c50
Коммит 9d9eaec14f
4 изменённых файлов: 30 добавлений и 24 удалений

Просмотреть файл

@@ -1276,3 +1276,9 @@ export function fillArray(value, length) {
return arr;
}
// Checks if a data transfer contains files not text, folders, etc..
// Slightly modified from http://stackoverflow.com/questions/6848043/how-do-i-detect-a-file-is-being-dragged-rather-than-a-draggable-element-on-my-pa
export function isFileTransfer(files) {
return files.types != null && (files.types.indexOf ? files.types.indexOf('Files') !== -1 : files.types.contains('application/x-moz-file'));
}