Disabling pan to prevent arrow scrolling pan.

master
Ben Burlingham 10 years ago
parent fbedd19138
commit fdab2ae3b5
  1. 2
      index.html
  2. 12
      js/chart3.js

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title></title> <title></title>
<link href='css/index.css' rel='stylesheet' type='text/css'> <link href='css/index.css' rel='stylesheet' type='text/css'>
<script src='/bb-2016/js/ui.js'></script> <script src='/core/js/ui.js'></script>
</head> </head>
<body> <body>

@ -112,11 +112,15 @@ var BuoyAnalysisChart3 = {
BuoyAnalysisChart3.controls = new THREE.OrbitControls( BuoyAnalysisChart3.camera, BuoyAnalysisChart3.renderer.domElement ); BuoyAnalysisChart3.controls = new THREE.OrbitControls( BuoyAnalysisChart3.camera, BuoyAnalysisChart3.renderer.domElement );
BuoyAnalysisChart3.controls.target = new THREE.Vector3(200, 100, 0); BuoyAnalysisChart3.controls.target = new THREE.Vector3(200, 100, 0);
// controls.minPolarAngle = 50 * Math.PI / 180; // radians // BuoyAnalysisChart3.controls.minPolarAngle = 50 * Math.PI / 180; // radians
// controls.maxPolarAngle = 90 * Math.PI / 180; // radians // BuoyAnalysisChart3.controls.maxPolarAngle = 90 * Math.PI / 180; // radians
// controls.minAzimuthAngle = -90 * Math.PI / 180; // radians // BuoyAnalysisChart3.controls.minAzimuthAngle = -90 * Math.PI / 180; // radians
// controls.maxAzimuthAngle = 0 * Math.PI / 180; // radians // BuoyAnalysisChart3.controls.maxAzimuthAngle = 0 * Math.PI / 180; // radians
BuoyAnalysisChart3.controls.enablePan = false;
BuoyAnalysisChart3.controls.userPanSpeed = 6;
}, },
/** /**

Loading…
Cancel
Save