Commit 6f5d901
OrbitControl: Fixed rotation toggle in KeyDown handler (#29834)
* Fixed rotation toggle in KeyDown handler
Implemented the toggle via `enableRotate` also on `_handleKeyDown`. The previous behaviour seemed unexpected, allowing rotation via keys, even when rotating should be disabled if `enableRotate` was set to `false`.
* Update OrbitControls.js
Refactor `enablePan` in `_handleKeyDown()`.
* Update OrbitControls.js
Correctly set `needsUpdate` in `_handleKeyDown()`.
* Update OrbitControls.js
Revert `needsUpdate` change.
---------
Co-authored-by: Michael Herzog <[email protected]>1 parent beab9e8 commit 6f5d901
1 file changed
+41
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
788 | 792 | | |
789 | 793 | | |
790 | 794 | | |
791 | | - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
792 | 800 | | |
793 | 801 | | |
794 | 802 | | |
| |||
799 | 807 | | |
800 | 808 | | |
801 | 809 | | |
802 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
803 | 815 | | |
804 | 816 | | |
805 | 817 | | |
806 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
807 | 823 | | |
808 | 824 | | |
809 | 825 | | |
| |||
814 | 830 | | |
815 | 831 | | |
816 | 832 | | |
817 | | - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
818 | 838 | | |
819 | 839 | | |
820 | 840 | | |
821 | | - | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
822 | 846 | | |
823 | 847 | | |
824 | 848 | | |
| |||
829 | 853 | | |
830 | 854 | | |
831 | 855 | | |
832 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
833 | 861 | | |
834 | 862 | | |
835 | 863 | | |
836 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
837 | 869 | | |
838 | 870 | | |
839 | 871 | | |
| |||
1340 | 1372 | | |
1341 | 1373 | | |
1342 | 1374 | | |
1343 | | - | |
| 1375 | + | |
1344 | 1376 | | |
1345 | 1377 | | |
1346 | 1378 | | |
| |||
0 commit comments