File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,12 @@ <h1><a href="http://threejs.org">three.js</a> / docs</h1>
9393 link . setAttribute ( 'target' , 'viewer' ) ;
9494 link . addEventListener ( 'click' , function ( event ) {
9595
96- window . location . hash = pageURL ;
97- panel . classList . add ( 'collapsed' ) ;
96+ if ( event . button === 0 && ! event . ctrlKey && ! event . altKey && ! event . metaKey ) {
97+
98+ window . location . hash = pageURL ;
99+ panel . classList . add ( 'collapsed' ) ;
100+
101+ }
98102
99103 } ) ;
100104
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
296296 link . setAttribute ( 'target' , 'viewer' ) ;
297297 link . addEventListener ( 'click' , function ( event ) {
298298
299- if ( event . button === 0 ) {
299+ if ( event . button === 0 && ! event . ctrlKey && ! event . altKey && ! event . metaKey ) {
300300
301301 selectFile ( file ) ;
302302
You can’t perform that action at this time.
0 commit comments