Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

this is backwards. fix w3

  • Loading branch information...
commit 9bb57931adf3c9382feb835c261bde3a7a736afd 1 parent 10fc534
Alex Coomans drcapulet authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  webroot/desktop.js
2  webroot/desktop.js
View
@@ -675,7 +675,7 @@ $(function () {
cntrlrCanvasContext.strokeStyle = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')';
} else {
cntrlrClickCalled = true;
- elem = document.elementFromPoint($("#cntrlr-cursor").position().left, $("#cntrlr-cursor").position().top);
+ elem = document.elementFromPoint(parseInt($("#cntrlr-cursor").css('left').replace('px', ''), 10), parseInt($("#cntrlr-cursor").css('top').replace('px', ''), 10));
if(elem != null) {
if((elem.tagName == "INPUT" && elem.type.toLowerCase() != "submit" && elem.type.toLowerCase() != "checkbox" && elem.type.toLowerCase() != "radio") || elem.tagName == "TEXTAREA" || elem.tagName == "SELECT") {
$(elem).click();
Please sign in to comment.
Something went wrong with that request. Please try again.