check for copy and cut event

This commit is contained in:
Philipp Kühn 2019-07-23 13:14:11 +02:00
parent 7c7d2c6e19
commit a1ae06320a

View File

@ -141,10 +141,12 @@ export default class ComponentView {
}
}
const isCopy = event.type === 'copy'
const isPaste = event.type === 'paste'
const isCut = event.type === 'cut'
const isDrag = event.type.startsWith('drag') || event.type === 'drop'
if ((draggable && isDrag) || isPaste) {
if ((draggable && isDrag) || isCopy || isPaste || isCut) {
return false
}