From 7be88ccbfd4a5f09229149746dc8e0838291c0bf Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 29 May 2015 10:22:51 +0200 Subject: [PATCH] Corrected bug when replay and clicking everywhere --- js/prototype/replay.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/js/prototype/replay.js b/js/prototype/replay.js index 3a8388e..d54b070 100644 --- a/js/prototype/replay.js +++ b/js/prototype/replay.js @@ -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);