-
Notifications
You must be signed in to change notification settings - Fork 1
feat(multi-select): upgrade multi select mechanic #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -16,26 +16,29 @@ withDefaults(defineProps<Props>(), { | |||||
| selectedPositions: () => [], | ||||||
| }); | ||||||
|
|
||||||
| const emit = defineEmits(["swap", "drag-enter", "select"]); | ||||||
| const emit = defineEmits(["swap", "drag-enter", "drag-start", "drag-end", "select"]); | ||||||
|
|
||||||
| const startDrag = ( | ||||||
| evt: DragEvent & { dataTransfer?: DataTransfer }, | ||||||
| evt: DragEvent & { dataTransfer?: DataTransfer | null }, | ||||||
| position: string, | ||||||
| selectedPositions: number[] | ||||||
| ) => { | ||||||
| if (!evt.dataTransfer) return; | ||||||
|
|
||||||
| emit("drag-start", { position, selectedPositions }); | ||||||
|
|
||||||
| evt.dataTransfer.dropEffect = "move"; | ||||||
| evt.dataTransfer.effectAllowed = "move"; | ||||||
| evt.dataTransfer.setData("position", position); | ||||||
| // Przekaż listę zaznaczonych slotów, żeby drop wiedział o grupie | ||||||
| // Przekaz listę zaznaczonych slotów, żeby drop wiedział o grupie | ||||||
| evt.dataTransfer.setData("selectedPositions", JSON.stringify(selectedPositions)); | ||||||
|
|
||||||
| // Customowy ghost image gdy przeciągamy grupę | ||||||
| // Customowy ghost image gdy przeciagamy grupę | ||||||
|
||||||
| // Customowy ghost image gdy przeciagamy grupę | |
| // Customowy ghost image gdy przeciągamy grupę |
Copilot
AI
Mar 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error: "Nakladka" is missing the Polish diacritic ł and should be "Nakładka".
| <!-- Nakladka zaznaczenia --> | |
| <!-- Nakładka zaznaczenia --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Three Polish comment spelling errors were introduced in this diff (diacritical marks removed):