Fixed clicking bug and added changes to the COMPARE page.
This commit is contained in:
parent
26ee03976a
commit
2786143669
4 changed files with 24 additions and 26 deletions
|
@ -196,9 +196,10 @@ Sprite.prototype.updateCostume = function() {
|
|||
|
||||
Sprite.prototype.onClick = function(evt) {
|
||||
// TODO - needs work!!
|
||||
var boxOffset = $('#container').offset();
|
||||
var mouseX = runtime.mousePos[0] + 240 + boxOffset.left;
|
||||
var mouseY = 180 - runtime.mousePos[1] + boxOffset.top;
|
||||
|
||||
// We don't need boxOffset anymore.
|
||||
var mouseX = runtime.mousePos[0] + 240;
|
||||
var mouseY = 180 - runtime.mousePos[1];
|
||||
|
||||
if (this.mesh.src.indexOf('.svg') == -1) {
|
||||
// HACK - if the image SRC doesn't indicate it's an SVG,
|
||||
|
|
Reference in a new issue