浏览代码

Correct wrong keyup (Ctrl, 17) to Shift(16)

Should snap to grid while pressing Shift, therefore Shift keyup should disable snapping.
Gllloria 5 年之前
父节点
当前提交
ad01cf9930
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/misc_controls_transform.html

+ 1 - 1
examples/misc_controls_transform.html

@@ -133,7 +133,7 @@
 
 					switch ( event.keyCode ) {
 
-						case 17: // Ctrl
+						case 16: // Shift
 							control.setTranslationSnap( null );
 							control.setRotationSnap( null );
 							control.setScaleSnap( null );