Corrected bug when replay and clicking everywhere

This commit is contained in:
Thomas FORGIONE 2015-05-29 10:22:51 +02:00
parent 7674e14c77
commit 7be88ccbfd
1 changed files with 10 additions and 10 deletions

View File

@ -98,20 +98,20 @@ function initListeners() {
window.addEventListener('resize', onWindowResize, false);
// Transmit click event to camera selecter
container.addEventListener('mousedown', function(event) {
if (event.which == 1)
cameraSelecter.click(event);
}, false
);
// container.addEventListener('mousedown', function(event) {
// if (event.which == 1)
// cameraSelecter.click(event);
// }, false
// );
// Update camera selecter when mouse moved
container.addEventListener('mousemove', function(event) {
cameraSelecter.update(event);
}, false
);
// container.addEventListener('mousemove', function(event) {
// cameraSelecter.update(event);
// }, false
// );
// Escape key to exit fullscreen mode
document.addEventListener('keydown', function(event) { if (event.keyCode == 27) { stopFullscreen();} }, false);
// document.addEventListener('keydown', function(event) { if (event.keyCode == 27) { stopFullscreen();} }, false);
// HTML Bootstrap buttons
buttonManager = new ButtonManager(cameras);