Corrected bug when replay and clicking everywhere
This commit is contained in:
parent
7674e14c77
commit
7be88ccbfd
|
@ -98,20 +98,20 @@ function initListeners() {
|
||||||
window.addEventListener('resize', onWindowResize, false);
|
window.addEventListener('resize', onWindowResize, false);
|
||||||
|
|
||||||
// Transmit click event to camera selecter
|
// Transmit click event to camera selecter
|
||||||
container.addEventListener('mousedown', function(event) {
|
// container.addEventListener('mousedown', function(event) {
|
||||||
if (event.which == 1)
|
// if (event.which == 1)
|
||||||
cameraSelecter.click(event);
|
// cameraSelecter.click(event);
|
||||||
}, false
|
// }, false
|
||||||
);
|
// );
|
||||||
|
|
||||||
// Update camera selecter when mouse moved
|
// Update camera selecter when mouse moved
|
||||||
container.addEventListener('mousemove', function(event) {
|
// container.addEventListener('mousemove', function(event) {
|
||||||
cameraSelecter.update(event);
|
// cameraSelecter.update(event);
|
||||||
}, false
|
// }, false
|
||||||
);
|
// );
|
||||||
|
|
||||||
// Escape key to exit fullscreen mode
|
// 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
|
// HTML Bootstrap buttons
|
||||||
buttonManager = new ButtonManager(cameras);
|
buttonManager = new ButtonManager(cameras);
|
||||||
|
|
Loading…
Reference in New Issue