Stefano Azzalini
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/commands/index.ts
|
|
|
@ -141,7 +141,7 @@ export default class CommandsModule extends Module<CommandsConfig & { pStylePref |
|
|
|
const trg = opts.target as Component | undefined; |
|
|
|
const trgs = trg ? [trg] : [...ed.getSelectedAll()]; |
|
|
|
const targets = trgs.map(trg => trg.delegate?.move?.(trg) || trg).filter(Boolean); |
|
|
|
const target = targets[0] as Component | undefined; |
|
|
|
const target = targets[targets.length - 1] as Component | undefined; |
|
|
|
const nativeDrag = event?.type === 'dragstart'; |
|
|
|
const modes = ['absolute', 'translate']; |
|
|
|
|
|
|
|
|