瀏覽代碼

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();
 					}