{"author_link":"\/users\/ian-kettlewell","author_name":"Ian Kettlewell","author_uid":"ian-kettlewell","comments":[],"epoch":1534131687,"event":"LD42","format":"md","ldjam_node_id":113013,"likes":5,"metadata":{"p_key":"119091","p_author":"Ian Kettlewell","p_authorkey":"1079955","p_urlkey":"335115","p_title":"Fix for Mouse Drag Issue in Unity WebGL Build","p_cat":"LDJam ","p_event":"LD42","p_time":"1534131687","p_likes":"5","p_comments":"0","p_status":"WAYBACK","us_key":"1079955","us_name":"Ian Kettlewell","us_username":"ian-kettlewell","event_start":"1533859200","event_key":"73","event_name":"LD 42"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD42","removed_author":false},"_superparent":97793,"_trust":6,"author":79955,"body":"![mousebug.jpg](\/\/\/raw\/358\/31\/z\/1725c.jpg)\n\nI wanted to use a Unity WebGL build so that my game is easy to play, but after watching a few people play my game they ran into an issue where the mouse gets stuck like the above picture and becomes unusable.\n\n(Yes, I took a picture of the screen, I didn't have handy a screenshot tool that included the mouse).\n\nI found a fix from this Unity thread:\n\nhttps:\/\/forum.unity.com\/threads\/web-gl-mouse-input-glitch-on-chrome.468362\/\n\nCopy-paste this line of code into the CSS file generated with your Unity WebGL build:\n\n```\n.webgl-content * {border: 0; margin: 0; padding: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; }\n```\n\nIt fixes the issue and your mouse-based games should now work fine in the browser!\n\n\n","comments":1,"comments-timestamp":"2018-08-13T04:25:04Z","created":"2018-08-13T03:34:30Z","files":[],"files-timestamp":0,"id":113013,"love":5,"love-timestamp":"2018-08-16T05:17:59Z","meta":[],"modified":"2018-08-16T05:17:59Z","name":"Fix for Mouse Drag Issue in Unity WebGL Build","node-timestamp":"2018-08-13T03:41:27Z","parent":108779,"parents":[1,5,9,97793,108779],"path":"\/events\/ludum-dare\/42\/noahs-help-1\/fix-for-mouse-drag-issue-in-unity-webgl-build","published":"2018-08-13T03:41:27Z","scope":"public","slug":"fix-for-mouse-drag-issue-in-unity-webgl-build","subsubtype":"","subtype":"","type":"post","version":323203},"node_metadata":{"n_key":"113013","n_urlkey":"335115","n_parent":"108779","n_path":"\/events\/ludum-dare\/42\/noahs-help-1\/fix-for-mouse-drag-issue-in-unity-webgl-build","n_slug":"fix-for-mouse-drag-issue-in-unit","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"79955","n_created":"1534131270","n_modified":"1534396679","n_version":"323203","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/42\/noahs-help-1\/fix-for-mouse-drag-issue-in-unity-webgl-build","text":"![mousebug.jpg](\/\/\/raw\/358\/31\/z\/1725c.jpg)\n\nI wanted to use a Unity WebGL build so that my game is easy to play, but after watching a few people play my game they ran into an issue where the mouse gets stuck like the above picture and becomes unusable.\n\n(Yes, I took a picture of the screen, I didn't have handy a screenshot tool that included the mouse).\n\nI found a fix from this Unity thread:\n\nhttps:\/\/forum.unity.com\/threads\/web-gl-mouse-input-glitch-on-chrome.468362\/\n\nCopy-paste this line of code into the CSS file generated with your Unity WebGL build:\n\n```\n.webgl-content * {border: 0; margin: 0; padding: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; }\n```\n\nIt fixes the issue and your mouse-based games should now work fine in the browser!\n\n\n","title":"Fix for Mouse Drag Issue in Unity WebGL Build","wayback_source":[]}