We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2ba32 commit 7591621Copy full SHA for 7591621
1 file changed
src/core/View.js
@@ -203,7 +203,7 @@ export default class View extends Component {
203
}
204
switch (e.code) {
205
case 'KeyR':
206
- this.resetCamera();
+ if (props.keybindResetCamera) this.resetCamera();
207
break;
208
default:
209
// console.log(e.code);
@@ -706,6 +706,7 @@ View.defaultProps = {
706
showCubeAxes: false,
707
pointerSize: 0,
708
showOrientationAxes: false,
709
+ keybindResetCamera: true,
710
};
711
712
View.propTypes = {
@@ -860,4 +861,9 @@ View.propTypes = {
860
861
* Show/Hide orientation axes.
862
*/
863
showOrientationAxes: PropTypes.bool,
864
+
865
+ /**
866
+ * Trigger/Not Trigger resetcamera on KeyR
867
+ */
868
+ keybindResetCamera: PropTypes.bool,
869
0 commit comments