diff --git a/ownshot/ownshot/MainWindow.xaml.cs b/ownshot/ownshot/MainWindow.xaml.cs index 9ff23c8..4e3c8fd 100644 --- a/ownshot/ownshot/MainWindow.xaml.cs +++ b/ownshot/ownshot/MainWindow.xaml.cs @@ -191,6 +191,13 @@ private void image1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) private void button_Click(object sender, RoutedEventArgs e) { SetWindowStyle(true); + selectionRectangle.MouseUp -= image1_MouseLeftButtonUp; + selectionRectangle.MouseMove -= image1_MouseMove; + BackPanel.MouseUp -= image1_MouseLeftButtonUp; + BackPanel.MouseMove -= image1_MouseMove; + image.MouseUp -= image1_MouseLeftButtonUp; + image.MouseMove -= image1_MouseMove; + selectionRectangle.Width = 0; //workaround } } } \ No newline at end of file