{"id":25842764,"url":"https://github.com/nir3x/webgl-mouse-input-fix","last_synced_at":"2026-05-04T20:41:17.495Z","repository":{"id":224745744,"uuid":"764106340","full_name":"NIR3X/WebGL-Mouse-Input-Fix","owner":"NIR3X","description":"WebGL Mouse Input Fix - Fix for High Polling Rates","archived":false,"fork":false,"pushed_at":"2024-02-29T06:52:42.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T16:54:04.188Z","etag":null,"topics":["godot","input-fix","javascript","js","mouse-input","unity","web-development","webgl"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NIR3X.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":"2024-02-27T13:47:13.000Z","updated_at":"2024-02-27T13:58:08.000Z","dependencies_parsed_at":"2025-03-01T06:31:51.025Z","dependency_job_id":"c44886f4-885a-4046-956e-145f3186cfc0","html_url":"https://github.com/NIR3X/WebGL-Mouse-Input-Fix","commit_stats":null,"previous_names":["nir3x/webgl-mouse-input-fix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NIR3X/WebGL-Mouse-Input-Fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2FWebGL-Mouse-Input-Fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2FWebGL-Mouse-Input-Fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2FWebGL-Mouse-Input-Fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2FWebGL-Mouse-Input-Fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NIR3X","download_url":"https://codeload.github.com/NIR3X/WebGL-Mouse-Input-Fix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2FWebGL-Mouse-Input-Fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32624687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["godot","input-fix","javascript","js","mouse-input","unity","web-development","webgl"],"created_at":"2025-03-01T06:31:45.383Z","updated_at":"2026-05-04T20:41:17.479Z","avatar_url":"https://github.com/NIR3X.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebGL Mouse Input Fix - Fix for High Polling Rates\n\nThis code provides a fix for the WebGL mouse input issue caused by high polling rates in browsers like Chromium. It overrides the `requestPointerLock` function to include the `unadjustedMovement` option.\n\n## Usage\n\nAdd the following code before all scripts in your game or application's `index.html`:\n\n```html\n\u003cscript\u003e\n\tconst oRequestPointerLock = Element.prototype.requestPointerLock;\n\tElement.prototype.requestPointerLock = async function hkRequestPointerLock(...args) {\n\t\ttry {\n\t\t\t(args[0] ||= {}).unadjustedMovement = true;\n\t\t\tawait oRequestPointerLock.apply(this, args);\n\t\t} catch (err) {\n\t\t\tconsole.log(err);\n\t\t}\n\t};\n\u003c/script\u003e\n```\n\n## License\n\n[![GNU AGPLv3 Image](https://www.gnu.org/graphics/agplv3-155x51.png)](https://www.gnu.org/licenses/agpl-3.0.html)\n\nThis program is Free Software: You can use, study share and improve it at your\nwill. Specifically you can redistribute and/or modify it under the terms of the\n[GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html) as\npublished by the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnir3x%2Fwebgl-mouse-input-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnir3x%2Fwebgl-mouse-input-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnir3x%2Fwebgl-mouse-input-fix/lists"}