Skip to content

Misc pointer events fixes - #2249

Merged
mergify[bot] merged 43 commits into
masterfrom
dev/dr/PointerTestBench
Dec 24, 2019
Merged

mergify[bot] merged 43 commits into
masterfrom
dev/dr/PointerTestBench

Conversation

@dr1rrb

@dr1rrb dr1rrb commented Dec 3, 2019 •

Copy link
Copy Markdown
Member

GitHub Issues:
fixes #2193
fixes #2180

Bug fixes

Misc bugs fixes for pointer events

What is the current behavior?

  • On Android, the location of the Tapped event args is always 0,0
  • When in a ScrollViewer, the ToggleSwitch might stay in pressed visual state
  • When 2 nested controls subscribes to the Tapped event, the parent one will receive the Tapped twice when tapping on the child.
  • On WASM the pressed buttons are reported only in PointerPressed and PointerReleased event. As we validate the pressed state in the GestureRecognizer, this means that no gesture can be detected (i.e. Tapped and DoubleTapped events are never fired)
  • The Thumb does fire the DragCompleted if the event PointerCanceled is raised (eg. when scrolling)
  • If a child control handles the pointer events, a parent control won't get them so it won't be able to use them with its own GestureRecognizer to detect Manipulation and Gesture (i.e. it won't be able to fire the Tapped event for instance).

What is the new behavior?

the opposite

PR Checklist

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Internal

Might fix https://nventive.visualstudio.com/_workitems/edit/168971

@gitpod-io

gitpod-io Bot commented Dec 3, 2019 •

Copy link
Copy Markdown

@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform area/automation Categorizes an issue or PR as relevant to project automation platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform kind/documentation labels Dec 3, 2019
@dr1rrb
dr1rrb force-pushed the dev/dr/PointerTestBench branch from 7335b8e to e15af31 Compare December 3, 2019 22:23
Comment thread doc/articles/features/routed-events.md Resolved
Comment thread src/Uno.UI/UI/Xaml/RoutedEvent.cs Resolved
@dr1rrb
dr1rrb force-pushed the dev/dr/PointerTestBench branch from 3657c43 to fb5e7c1 Compare December 9, 2019 15:42
@dr1rrb
dr1rrb marked this pull request as ready for review December 9, 2019 15:42
@dr1rrb dr1rrb self-assigned this Dec 9, 2019
@dr1rrb dr1rrb added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Dec 9, 2019
@dr1rrb
dr1rrb force-pushed the dev/dr/PointerTestBench branch 3 times, most recently from f8ddd8b to 2e4945a Compare December 9, 2019 20:25
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Dec 9, 2019
Comment thread doc/articles/features/routed-events.md Resolved
@dr1rrb
dr1rrb force-pushed the dev/dr/PointerTestBench branch from b0ffeed to e60dd9b Compare December 18, 2019 20:26
@dr1rrb
dr1rrb force-pushed the dev/dr/PointerTestBench branch from e60dd9b to 00e8a6b Compare December 23, 2019 16:10
@dr1rrb
dr1rrb force-pushed the dev/dr/PointerTestBench branch from 08eae8e to 0e9b9bc Compare December 23, 2019 21:22
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 11134 found UI Test snapshots differences.

  • android-28: 4 changed over 224

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • PopupWithOverlay_After
    • TestManipulation_Result
    • TextBox_RoundedCorners_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_RoundedCorners
    • ToggleSwitch_TemplateReuseTest_UITests_Shared_Windows_UI_Xaml_Controls_ToggleSwitchControl_ToggleSwitch_TemplateReuse
  • android-28-Snap: 11 changed over 634

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Animations_Sequential_Animations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • Button_Custom_Button_With_ContentTemplate_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Custom_Button_With_ContentTemplate
    • Image_Image_Stretch_None_ScrollViewer_Uno_UI_Samples_UITests_ImageTestsControl_Image_Stretch_None_Containers
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Horizontal_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Horizontal
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Wider_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Wider
    • ListView_ListViewResizableText_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListViewResizableText
    • ListView_ListView_WithScrollViewer_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListView_WithScrollViewer
    • TextBlockControl_TextBlock_FixedWidth_With_DataBound_Run_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBlock_FixedWidth_With_DataBound_Run
    • TextBlockControl_TextBoxSizeChanging_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBoxSizeChanging
    • TextBox_Uno_UI_Samples_Content_UITests_TextBoxControl_PasswordBox_Reveal_Scroll_Uno_UI_Samples_Content_UITests_TextBoxControl_PasswordBox_Reveal_Scroll
    • ComboBox_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement
  • ios: 6 changed over 109

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DatePickerFlyout_Unloaded_UITests_Shared_Windows_UI_Xaml_Controls_DatePicker_DatePicker_SampleContent
    • Keyboard_Textbox_InsideScrollViewer_Validation_0_-_Remove_Focus_on_normalTextBox
    • Keyboard_Textbox_InsideScrollViewer_Validation_5_-_Remove_Focus_on_numberTextBox
    • Keyboard_Textbox_NoScrollViewer_Validation_2_-_Remove_Focus_on_placeholderTextTextBox
    • Keyboard_Textbox_NoScrollViewer_Validation_1_-_Remove_Focus_on_filledTextBox
    • Keyboard_Textbox_NoScrollViewer_Validation_4_-_Remove_Focus_on_multilineTextBox
  • ios-Snap: 6 changed over 625

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Clipping_SamplesApp_Windows_UI_Xaml_Clipping_XamlButtonWithClipping_Scrollable_SamplesApp_Windows_UI_Xaml_Clipping_XamlButtonWithClipping_Scrollable
    • Default_Uno_UI_Samples_UITests_Image_Image_Stretch_Uno_UI_Samples_UITests_Image_Image_Stretch
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Taller_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Taller
    • MediaPlayerElement_Using__3gp_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_3gp_Extension
    • WebView_WebView_NavigateToUri_Uno_UI_Samples_Content_UITests_WebView_WebView_NavigateToUri
    • Windows_Devices_Lamp_UITests_Shared_Windows_Devices_LampTests
  • wasm: 5 changed over 637

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Media.Animation.SequentialAnimationsPage
    • UITests.Shared.Windows_Devices.LampTests
    • UITests.Shared.Windows_UI_Input.GestureRecognizer.PointersEvents
    • Uno.UI.Samples.Content.UITests.Transform.Image_With_RotateTransform
    • Uno.UI.Samples.UITests.Image.Image_Margin
  • wasm-automated: 3 changed over 290

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Draw_polyline_PolylinePage_-_ChangeShape
    • LoadEmptyContentControl_ContentControlNoTemplateNoContent_-_bntContentClear
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 11138 found UI Test snapshots differences.

  • android-28: 4 changed over 224

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • PopupWithOverlay_After
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • TextBox_RoundedCorners_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_RoundedCorners
    • ToggleSwitch_TemplateReuseTest_UITests_Shared_Windows_UI_Xaml_Controls_ToggleSwitchControl_ToggleSwitch_TemplateReuse
  • android-28-Snap: 9 changed over 634

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Animations_Sequential_Animations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Smaller_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Smaller
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Wider_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Wider
    • ListView_ListViewResizableText_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListViewResizableText
    • ListView_ListView_WithScrollViewer_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListView_WithScrollViewer
    • TextBlockControl_TextBlock_FixedWidth_With_DataBound_Run_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBlock_FixedWidth_With_DataBound_Run
    • TextBox_Uno_UI_Samples_Content_UITests_TextBoxControl_PasswordBox_Reveal_Scroll_Uno_UI_Samples_Content_UITests_TextBoxControl_PasswordBox_Reveal_Scroll
    • WebView_Javascript_AlertConfirmPrompt_Uno_UI_Samples_Content_UITests_WebView_WebViewControlJavaScriptAlertConfirmPrompt
    • ComboBox_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement
  • ios: 7 changed over 109

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Keyboard_Textbox_NoScrollViewer_Validation_2_-_Remove_Focus_on_placeholderTextTextBox
    • Keyboard_Textbox_NoScrollViewer_Validation_4_-_Remove_Focus_on_multilineTextBox
    • DatePickerFlyout_Unloaded_UITests_Shared_Windows_UI_Xaml_Controls_DatePicker_DatePicker_SampleContent
    • Keyboard_Textbox_InsideScrollViewer_Validation_0_-_Remove_Focus_on_normalTextBox
    • Keyboard_Textbox_InsideScrollViewer_Validation_2_-_Remove_Focus_on_placeholderTextTextBox
    • Keyboard_Textbox_InsideScrollViewer_Validation_5_-_Remove_Focus_on_numberTextBox
    • Keyboard_Textbox_NoScrollViewer_Validation_1_-_Remove_Focus_on_filledTextBox
  • ios-Snap: 4 changed over 625

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ContentControlTestsControl_ContentControl_Nested_TemplatedParent_Uno_UI_Samples_Content_UITests_ContentControlTestsControl_ContentControl_Nested_TemplatedParent
    • Clipping_SamplesApp_Windows_UI_Xaml_Clipping_XamlButtonWithClipping_Scrollable_SamplesApp_Windows_UI_Xaml_Clipping_XamlButtonWithClipping_Scrollable
    • WebView_WebView_NavigateToUri_Uno_UI_Samples_Content_UITests_WebView_WebView_NavigateToUri
    • Windows_Devices_Lamp_UITests_Shared_Windows_Devices_LampTests
  • wasm: 3 changed over 637

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Media.Animation.SequentialAnimationsPage
    • UITests.Shared.Windows_Devices.LampTests
    • UITests.Shared.Windows_UI_Input.GestureRecognizer.PointersEvents
  • wasm-automated: 3 changed over 290

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Draw_polyline_PolylinePage_-_ChangeShape
    • LoadEmptyContentControl_ContentControlNoTemplateNoContent_-_bntContentClear
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage

@mergify
mergify Bot merged commit 89142db into master Dec 24, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the dev/dr/PointerTestBench branch December 24, 2019 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent pointer events [Calculator][Android-Wasm] History button does not respond

5 participants