|
@@ -93,8 +93,12 @@
|
|
|
link.setAttribute( 'target', 'viewer' );
|
|
|
link.addEventListener( 'click', function ( event ) {
|
|
|
|
|
|
- window.location.hash = pageURL;
|
|
|
- panel.classList.add( 'collapsed' );
|
|
|
+ if ( event.button === 0 && !event.ctrlKey && !event.altKey && !event.metaKey ) {
|
|
|
+
|
|
|
+ window.location.hash = pageURL;
|
|
|
+ panel.classList.add( 'collapsed' );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
} );
|
|
|
|