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
1
js/IO.js
1
js/IO.js
|
@ -27,6 +27,7 @@ var IO = function() {
|
|||
// In production, simply use the local path (no proxy)
|
||||
// since we won't be hampered by the same-origin policy.
|
||||
this.base = 'proxy.php?resource=internalapi/';
|
||||
//this.base = 'http://scratch.mit.edu/internalapi/'; // Final base
|
||||
this.project_base = this.base + 'project/';
|
||||
this.project_suffix = '/get/';
|
||||
this.asset_base = this.base + 'asset/';
|
||||
|
|
|
@ -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