소스 검색

Props: Fix undo on range

trethaller 7 년 전
부모
커밋
350bd6de93
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      hide/comp/PropsEditor.hx

+ 3 - 1
hide/comp/PropsEditor.hx

@@ -145,8 +145,10 @@ class PropsEditor extends Component {
 				button.click(function(e) {
 					var range = @:privateAccess f.range;
 					if(range != null) {
-						if(e.ctrlKey)
+						if(e.ctrlKey) {
 							range.value = Math.round(range.value);
+							range.onChange(false);
+						}
 						else
 							range.reset();
 					}