Skip to content

Commit

Permalink
Fix #868
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Jan 12, 2024
1 parent 7a55190 commit 9ddbe15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Beutl.Controls/PropertyEditors/Vector2Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void SubscribeEvents2(TextBlock textBlock)

private void OnTextBlockPointerMoved(object sender, PointerEventArgs e)
{
if (!(InnerFirstTextBox.IsKeyboardFocusWithin || InnerSecondTextBox.IsKeyboardFocusWithin)
if (!(InnerFirstTextBox.IsKeyboardFocusWithin || InnerSecondTextBox?.IsKeyboardFocusWithin == true)
&& _headerPressed
&& sender is TextBlock headerText)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Beutl.Controls/PropertyEditors/Vector3Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ void SubscribeEvents2(TextBlock textBlock)
private void OnTextBlockPointerMoved(object sender, PointerEventArgs e)
{
if (!(InnerFirstTextBox.IsKeyboardFocusWithin
|| InnerSecondTextBox.IsKeyboardFocusWithin
|| InnerThirdTextBox.IsKeyboardFocusWithin)
|| InnerSecondTextBox?.IsKeyboardFocusWithin == true
|| InnerThirdTextBox?.IsKeyboardFocusWithin == true)
&& _headerPressed
&& sender is TextBlock headerText)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Beutl.Controls/PropertyEditors/Vector4Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ void SubscribeEvents(TextBox textBox)
private void OnTextBlockPointerMoved(object sender, PointerEventArgs e)
{
if (!(InnerFirstTextBox.IsKeyboardFocusWithin
|| InnerSecondTextBox.IsKeyboardFocusWithin
|| InnerThirdTextBox.IsKeyboardFocusWithin
|| InnerFourthTextBox.IsKeyboardFocusWithin)
|| InnerSecondTextBox?.IsKeyboardFocusWithin == true
|| InnerThirdTextBox?.IsKeyboardFocusWithin == true
|| InnerFourthTextBox?.IsKeyboardFocusWithin == true)
&& _headerPressed)
{
Point point = e.GetPosition(_headerText);
Expand Down

0 comments on commit 9ddbe15

Please sign in to comment.