@@ -471,27 +471,27 @@ private void OnMouseDown(object sender, MouseButtonEventArgs e)
471
471
{
472
472
if ( WindowState == WindowState . Maximized )
473
473
{
474
- // 최대화된 창의 크기 기준으로 비율 계산
474
+ // Calculate ratio based on maximized window dimensions
475
475
double maxWidth = this . ActualWidth ;
476
476
double maxHeight = this . ActualHeight ;
477
477
var mousePos = e . GetPosition ( this ) ;
478
478
double xRatio = mousePos . X / maxWidth ;
479
479
double yRatio = mousePos . Y / maxHeight ;
480
480
481
- // 현재 모니터 정보
481
+ // Current monitor information
482
482
var screen = Screen . FromHandle ( new WindowInteropHelper ( this ) . Handle ) ;
483
483
var workingArea = screen . WorkingArea ;
484
484
var screenLeftTop = Win32Helper . TransformPixelsToDIP ( this , workingArea . X , workingArea . Y ) ;
485
485
486
- // Normal로 전환
486
+ // Switch to Normal state
487
487
WindowState = WindowState . Normal ;
488
488
489
489
Dispatcher . BeginInvoke ( new Action ( ( ) =>
490
490
{
491
491
double normalWidth = Width ;
492
492
double normalHeight = Height ;
493
493
494
- // 최대화된 창 크기와 Normal 창 크기 차이만큼 비율 적용
494
+ // Apply ratio based on the difference between maximized and normal window sizes
495
495
Left = screenLeftTop . X + ( maxWidth - normalWidth ) * xRatio ;
496
496
Top = screenLeftTop . Y + ( maxHeight - normalHeight ) * yRatio ;
497
497
@@ -508,7 +508,7 @@ private void OnMouseDown(object sender, MouseButtonEventArgs e)
508
508
}
509
509
catch ( InvalidOperationException )
510
510
{
511
- // 무시
511
+ // Ignored - can occur if drag operation is already in progress
512
512
}
513
513
}
514
514
}
0 commit comments