fix footer menu, fix #4

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-13 19:46:48 +01:00
parent 74a4f4b695
commit 76565a8b28
6 changed files with 67 additions and 34 deletions
@@ -332,20 +332,6 @@
this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
break;
}
// if(
// (this.x < this.wall_limits.left && this.p.velocity.x < 0)
// || (this.x > this.wall_limits.right && this.p.velocity.x > 0)
// ){
// // console.log("bounce x");
// this.p.velocity.multiplyScalarXY(-1, 1).multiplyScalar(0.75);
// }
// if(
// (this.y < this.wall_limits.top && this.p.velocity.y < 0)
// || (this.y > this.wall_limits.bottom && this.p.velocity.y > 0)
// ){
// // console.log("bounce y");
// this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
// }
};
Node.prototype.updatePos = function(){
@@ -673,10 +659,13 @@
_$entrees_block_termlinks.parents('li').removeClass('opened');
$li.addClass('opened');
filterEntree(tid);
_$body.trigger({'type':'open_entree', 'tid':tid});
}else{
$li.removeClass('opened');
scrambleCollection();
_$body.trigger({'type':'close_entree', 'tid':tid});
}
return false;
});
@@ -332,20 +332,6 @@
this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
break;
}
// if(
// (this.x < this.wall_limits.left && this.p.velocity.x < 0)
// || (this.x > this.wall_limits.right && this.p.velocity.x > 0)
// ){
// // console.log("bounce x");
// this.p.velocity.multiplyScalarXY(-1, 1).multiplyScalar(0.75);
// }
// if(
// (this.y < this.wall_limits.top && this.p.velocity.y < 0)
// || (this.y > this.wall_limits.bottom && this.p.velocity.y > 0)
// ){
// // console.log("bounce y");
// this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
// }
};
Node.prototype.updatePos = function(){
@@ -673,10 +659,13 @@
_$entrees_block_termlinks.parents('li').removeClass('opened');
$li.addClass('opened');
filterEntree(tid);
_$body.trigger({'type':'open_entree', 'tid':tid});
}else{
$li.removeClass('opened');
scrambleCollection();
_$body.trigger({'type':'close_entree', 'tid':tid});
}
return false;
});