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);
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in New Issue