{"id":22535041,"url":"https://github.com/flowforfrank/drag-n-drop","last_synced_at":"2025-07-09T14:35:42.698Z","repository":{"id":106096891,"uuid":"263091355","full_name":"flowforfrank/drag-n-drop","owner":"flowforfrank","description":"📌 Drag and Drop Kanban board created natively with JavaScript","archived":false,"fork":false,"pushed_at":"2021-02-25T17:35:18.000Z","size":49,"stargazers_count":44,"open_issues_count":0,"forks_count":14,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T19:06:14.439Z","etag":null,"topics":["drag","drag-and-drop","html","javascript","tutorial","webtips"],"latest_commit_sha":null,"homepage":"https://webtips.dev","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flowforfrank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-11T16:03:34.000Z","updated_at":"2025-02-20T13:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"3238831c-700a-469b-85ad-9bdb217a67fc","html_url":"https://github.com/flowforfrank/drag-n-drop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowforfrank%2Fdrag-n-drop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowforfrank%2Fdrag-n-drop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowforfrank%2Fdrag-n-drop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowforfrank%2Fdrag-n-drop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flowforfrank","download_url":"https://codeload.github.com/flowforfrank/drag-n-drop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094994,"owners_count":21046770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drag","drag-and-drop","html","javascript","tutorial","webtips"],"created_at":"2024-12-07T10:06:19.615Z","updated_at":"2025-04-09T19:06:21.664Z","avatar_url":"https://github.com/flowforfrank.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"hero.jpg\" alt=\"Drag and drop functionality created in vanilla JavaScript\" /\u003e\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eYou can read the written tutorial about the implementation on \u003cstrong\u003e\u003ca href=\"https://www.webtips.dev/how-to-create-native-drag-and-drop-functionality-in-javascript\"\u003ewebtips.dev\u003c/a\u003e\u003c/strong\u003e 📌\u003c/h4\u003e\n\n---\n\n## 🐞 Bugfixes\n\n**❓ Why is the scale effect doesn't work after the first drag?**\n- This happens because the HTML of the column is updated. Since the event listeners are on the `.card`\n  inside the `.column`, these will be detached from the DOM, after the first HTML update. This means they won't be triggered anymore, therefore they won't get the `.dragging` class which applies the scale effect. To fix this, all you have to do is delegate the event listener from the document. The same is true for the `dragend` event.\n  ```JavaScript\n  document.addEventListener('dragstart', e =\u003e {\n    if (e.target.className.includes('card')) {\n      dragStart(e.target);\n    }\n  });\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowforfrank%2Fdrag-n-drop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowforfrank%2Fdrag-n-drop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowforfrank%2Fdrag-n-drop/lists"}