2
0
Эх сурвалжийг харах

[mesh] Fixed lod slider being broken when window was resized or not on main screen

Clément Espeute 11 сар өмнө
parent
commit
9119a41c05
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      hide/view/Model.hx

+ 2 - 2
hide/view/Model.hx

@@ -650,7 +650,7 @@ class Model extends FileView {
 							var limits = [ getLodRatioFromIdx(currIdx + 2),  getLodRatioFromIdx(currIdx)];
 
 							startDrag(function(e) {
-								var newRatio = getLodRatioFromPx(e.screenX - lodsLine.offset().left);
+								var newRatio = getLodRatioFromPx(e.clientX - lodsLine.offset().left);
 								newRatio = hxd.Math.clamp(newRatio, limits[0], limits[1]);
 								newConfig[currIdx] = newRatio;
 								@:privateAccess hmd.lodConfig = newConfig;
@@ -1388,7 +1388,7 @@ class Model extends FileView {
 				var lodVertexesCount = @:privateAccess hmd.lods[curLod].vertexCount;
 				lodsCountEl.text(lodVertexesCount);
 			}
-			
+
 		}
 	}