@@ -207,7 +207,6 @@ public void HandleSnapping(UIDocument draggedWindow)
207207 if ( distance < _snapDistance && distance != 0 )
208208 {
209209 draggedWindow . rootVisualElement [ 0 ] . transform . position
210- // = new Vector3(otherRect.xMin, draggedWindow.rootVisualElement[0].worldBound.y);
211210 = new Vector3 ( otherRect . xMin - draggedWindow . rootVisualElement [ 0 ] . worldBound . xMin , 0 ) ;
212211
213212 break ;
@@ -218,7 +217,6 @@ public void HandleSnapping(UIDocument draggedWindow)
218217 if ( distance < _snapDistance && distance != 0 )
219218 {
220219 draggedWindow . rootVisualElement [ 0 ] . transform . position
221- // = new Vector3(otherRect.xMin - draggedWindow.rootVisualElement[0].worldBound.width, draggedWindow.rootVisualElement[0].worldBound.y);
222220 = new Vector3 ( otherRect . xMin - draggedWindow . rootVisualElement [ 0 ] . worldBound . width - draggedWindow . rootVisualElement [ 0 ] . worldBound . xMin , 0 ) ;
223221
224222 break ;
@@ -229,7 +227,6 @@ public void HandleSnapping(UIDocument draggedWindow)
229227 if ( distance < _snapDistance && distance != 0 )
230228 {
231229 draggedWindow . rootVisualElement [ 0 ] . transform . position
232- // = new Vector3(otherRect.xMax, draggedWindow.rootVisualElement[0].worldBound.y);
233230 = new Vector3 ( otherRect . xMax - draggedWindow . rootVisualElement [ 0 ] . worldBound . xMin , 0 ) ;
234231
235232 break ;
@@ -241,7 +238,6 @@ public void HandleSnapping(UIDocument draggedWindow)
241238 if ( distance < _snapDistance && distance != 0 )
242239 {
243240 draggedWindow . rootVisualElement [ 0 ] . transform . position
244- // = new Vector3(otherRect.xMax - draggedWindow.rootVisualElement[0].worldBound.width, draggedWindow.rootVisualElement[0].worldBound.y);
245241 = new Vector3 ( otherRect . xMax - draggedWindow . rootVisualElement [ 0 ] . worldBound . width - draggedWindow . rootVisualElement [ 0 ] . worldBound . xMin , 0 ) ;
246242
247243 break ;
@@ -252,7 +248,6 @@ public void HandleSnapping(UIDocument draggedWindow)
252248 if ( distance < _snapDistance && distance != 0 )
253249 {
254250 draggedWindow . rootVisualElement [ 0 ] . transform . position
255- // = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMin);
256251 = new Vector3 ( 0 , otherRect . yMin - draggedWindow . rootVisualElement [ 0 ] . worldBound . yMin ) ;
257252
258253 break ;
@@ -263,7 +258,6 @@ public void HandleSnapping(UIDocument draggedWindow)
263258 if ( distance < _snapDistance && distance != 0 )
264259 {
265260 draggedWindow . rootVisualElement [ 0 ] . transform . position
266- // = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMin - draggedWindow.rootVisualElement[0].worldBound.height);
267261 = new Vector3 ( 0 , otherRect . yMin - draggedWindow . rootVisualElement [ 0 ] . worldBound . height - draggedWindow . rootVisualElement [ 0 ] . worldBound . yMin ) ;
268262
269263 break ;
@@ -274,7 +268,6 @@ public void HandleSnapping(UIDocument draggedWindow)
274268 if ( distance < _snapDistance && distance != 0 )
275269 {
276270 draggedWindow . rootVisualElement [ 0 ] . transform . position
277- // = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMax);
278271 = new Vector3 ( 0 , otherRect . yMax - draggedWindow . rootVisualElement [ 0 ] . worldBound . yMin ) ;
279272
280273 break ;
@@ -285,7 +278,6 @@ public void HandleSnapping(UIDocument draggedWindow)
285278 if ( distance < _snapDistance && distance != 0 )
286279 {
287280 draggedWindow . rootVisualElement [ 0 ] . transform . position
288- // = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMax - draggedWindow.rootVisualElement[0].worldBound.height);
289281 = new Vector3 ( 0 , otherRect . yMax - draggedWindow . rootVisualElement [ 0 ] . worldBound . height - draggedWindow . rootVisualElement [ 0 ] . worldBound . yMin ) ;
290282 }
291283 }
0 commit comments