{"id":23537722,"url":"https://github.com/prod3v3loper/js-element-move","last_synced_at":"2026-04-30T14:32:37.589Z","repository":{"id":159024021,"uuid":"175500527","full_name":"prod3v3loper/js-element-move","owner":"prod3v3loper","description":"Javascript move element with mouse","archived":false,"fork":false,"pushed_at":"2019-03-18T20:45:14.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T00:21:47.401Z","etag":null,"topics":["element","elements","javascript","mouse","move","pure","pure-javascript"],"latest_commit_sha":null,"homepage":"https://www.tnado.com/blog/javascript-move-a-div-element-with-the-mouse/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prod3v3loper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-13T21:18:02.000Z","updated_at":"2024-05-14T00:33:18.000Z","dependencies_parsed_at":"2023-05-01T17:16:27.270Z","dependency_job_id":null,"html_url":"https://github.com/prod3v3loper/js-element-move","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prod3v3loper/js-element-move","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fjs-element-move","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fjs-element-move/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fjs-element-move/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fjs-element-move/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prod3v3loper","download_url":"https://codeload.github.com/prod3v3loper/js-element-move/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prod3v3loper%2Fjs-element-move/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32468009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["element","elements","javascript","mouse","move","pure","pure-javascript"],"created_at":"2024-12-26T03:19:03.238Z","updated_at":"2026-04-30T14:32:37.585Z","avatar_url":"https://github.com/prod3v3loper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Element Move\n\nUse JavaScript to move the elements correctly.\n\n- mousedown\n- mouseup\n- mousemove\n\n[Mouse Events Tutorial](https://www.tnado.com/blog/javascript-move-div-with-the-mouse/)\n\nFor touch devices use the touch events.\n\n- touchstart\n- touchend\n- touchmove\n\nFirst check if you are in a touch device. So you can act accordingly and initiate what is needed.\n\n[Detect touch](https://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript)\n\n```js\nfunction is_touch_device() {\n    return 'ontouchstart' in window;\n}\n```\n\nBut the touch will not work on all devices with this calculation, there comes from me separately still a section here purely soon.\n\n# Contribute\n\nPlease [file an issue](https://github.com/prod3v3loper/js-element-move/issues) if you\nthink something could be improved. Please submit Pull Requests when ever\npossible.\n\n# Built with\n\n[NetBeans](https://netbeans.org/) - NetBeans\n\n[VSC](https://code.visualstudio.com/) - Visual Studio Code\n\n# Authors\n\n**Samet Tarim** - *All works*\n\n# License\n\n[MIT](https://github.com/prod3v3loper/js-element-move/blob/master/LICENSE) - [prod3v3loper](https://www.tnado.com/author/prod3v3loper/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprod3v3loper%2Fjs-element-move","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprod3v3loper%2Fjs-element-move","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprod3v3loper%2Fjs-element-move/lists"}