@dosgato/dialog 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,13 +164,13 @@
164
164
  if ($store.selected.size <= 1) dispatch('choose', item)
165
165
  }
166
166
  function onDragStart (e: DragEvent) {
167
- userWantsCopy = e.dataTransfer!.dropEffect === 'copy'
167
+ userWantsCopy = e.ctrlKey || e.metaKey
168
168
  e.dataTransfer!.effectAllowed = 'copyMove'
169
169
  e.dataTransfer!.setData('text/plain', item.id)
170
170
  store.dragStart(item)
171
171
  }
172
172
  function onDragOver (e: DragEvent) {
173
- userWantsCopy = e.dataTransfer!.dropEffect === 'copy'
173
+ userWantsCopy = e.ctrlKey || e.metaKey
174
174
  if (dropZone) {
175
175
  e.preventDefault()
176
176
  e.dataTransfer!.dropEffect = store.dropEffect(item, false, userWantsCopy)
@@ -178,7 +178,7 @@
178
178
  return !dropZone
179
179
  }
180
180
  function onDragOverAbove (e: DragEvent) {
181
- userWantsCopy = e.dataTransfer!.dropEffect === 'copy'
181
+ userWantsCopy = e.ctrlKey || e.metaKey
182
182
  if (dropAbove) {
183
183
  e.preventDefault()
184
184
  e.dataTransfer!.dropEffect = store.dropEffect(item, true, userWantsCopy)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dosgato/dialog",
3
3
  "description": "A component library for building forms that edit a JSON document.",
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "scripts": {
6
6
  "prepublishOnly": "svelte-package",
7
7
  "dev": "vite dev --force",