We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bd5eea + 7591621 commit 5182206Copy full SHA for 5182206
src/core/View.js
@@ -205,7 +205,7 @@ export default class View extends Component {
205
}
206
switch (e.code) {
207
case 'KeyR':
208
- this.resetCamera();
+ if (props.keybindResetCamera) this.resetCamera();
209
break;
210
default:
211
// console.log(e.code);
@@ -737,6 +737,7 @@ View.defaultProps = {
737
showCubeAxes: false,
738
pointerSize: 0,
739
showOrientationAxes: false,
740
+ keybindResetCamera: true,
741
};
742
743
View.propTypes = {
@@ -905,4 +906,9 @@ View.propTypes = {
905
906
* Show/Hide orientation axes.
907
*/
908
showOrientationAxes: PropTypes.bool,
909
+
910
+ /**
911
+ * Trigger/Not Trigger resetcamera on KeyR
912
+ */
913
+ keybindResetCamera: PropTypes.bool,
914
0 commit comments