Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Lateral tapping outside the menu does not return to web page #5720

Closed
delia-pop opened this issue Oct 27, 2021 · 11 comments
Closed

Lateral tapping outside the menu does not return to web page #5720

delia-pop opened this issue Oct 27, 2021 · 11 comments

Comments

@delia-pop
Copy link

Steps to reproduce

  1. Open a webpage with links/linked images (i.e. https://en.wikipedia.org).
  2. Long click on a link or a linked image.
  3. Tap outside the menu.
  4. Observe if the menu is dismissed.

Expected behavior

Tapping anywhere outside the menu will dismiss it, the user is returned to web page.

Actual behavior

Tapping outside the menu on the lateral left/right sides will not dismiss the menu. Please note that tapping above/below the menu works as expected, dismissing the menu.

Device information

  • Android device: Huawei P9 Lite (Android 8), Sony Xperia Z5 (Android 7).
    This issue was not reproduced on tablets.
  • Focus version: RC 94.1.0 ( Build 352991926 GV 94.0-20211025220926)/Beta 94.0.0-beta.2.
20211027_163058.mp4
@mcarare
Copy link
Contributor

mcarare commented Oct 27, 2021

I can see how this can be a problem as we have some big context menus in some cases (is that intended/acceptable? - we might be able to limit the menu height) but AFAIK we do not dismiss the context menu on tapping to the right or left in Fenix either.
cc @brampitoyo for consideration.

@pocmo pocmo added the UX label Oct 27, 2021
@brampitoyo
Copy link

@mcarare @delia-pop I agree. Tapping on the horizontal sides of a context menu should dismiss it.

I also agree with Mihai. We should file a separate issue to limit the height of the context menu.

What are the top and bottom margin/padding values that we should use? According to Material Design 3:

On small screens, dialogs scale vertically until reaching 48dp from the screen’s top and bottom edge

@mcarare mcarare removed the UX label Nov 2, 2021
@mcarare mcarare added this to Backlog in Android Focus via automation Nov 2, 2021
@ionutbedregeanu ionutbedregeanu moved this from Backlog to In Progress in Android Focus Nov 2, 2021
ionutbedregeanu pushed a commit to ionutbedregeanu/focus-android that referenced this issue Nov 3, 2021
Remove the background with inset and use windowMinWidthMajor, windowMinWidthMinor
ionutbedregeanu pushed a commit to ionutbedregeanu/focus-android that referenced this issue Nov 3, 2021
Remove the background with inset and use windowMinWidthMajor, windowMinWidthMinor
mergify bot pushed a commit that referenced this issue Nov 3, 2021
Remove the background with inset and use windowMinWidthMajor, windowMinWidthMinor
@ionutbedregeanu ionutbedregeanu added the QAReady flag for test read & needed label Nov 3, 2021
@delia-pop
Copy link
Author

Tested on Beta 95.0.0-beta.1 build and latest debug build from main 11/04 with Huawei P9 Lite (Android 8)/Sony Xperia Z5 (Android 7)/OnePlus 6T (Android 9).

The issue is verified fixed on the debug build with OnePlus 6T (Android 9) on both Portrait and Landscape modes.
However, on Huawei P9 Lite (Android 8), horizontal typing is still not dismissing the context menus on Portrait mode. This might be device related, since on Sony Xperia Z5 (Android 7) the issue is not encountered.

Note that it is still present on the Beta 95.0.0-beta.1 build.

OnePlus.6T.Android.9.mp4
Huawei.P9.Lite.Android.8.mp4
Sony.Xperia.Z5.Android.7.mp4

@lobontiumira lobontiumira added QAVerified and removed QAReady flag for test read & needed labels Nov 4, 2021
@delia-pop
Copy link
Author

Please note that horizontal typing is still not dismissing the context menus on Portrait mode on the Beta 95.0.0-beta.5 (build 353202152 GV 95.0-20211114185943) with LG G7 fit (Android 8.1.0)/Huawei P9 Lite (Android 8).

@ionutbedregeanu
Copy link
Contributor

ionutbedregeanu commented Nov 22, 2021

@delia-pop Seems that the space between menu and screen margins is too small for some devices.

@jeffreygee To display a context menu Focus and Fenix are using the same component from android components project, fact which makes me put myself the next questions:

Should I update this component and add some extra margins? But after that the dialog will not respect the figma design anymore. At this moment in Fenix this menu is not dismissible if we are tapping on left, right sides.

If I am adding an extra margin, this change should be reflected in both apps(Focus, Fenix)?
What's your suggestion?

@jeffreygee
Copy link

@ionutbedregeanu - let me check in quickly with our design systems team to see if they're addressing this in their new designs

@jeffreygee
Copy link

@ionutbedregeanu - I checked in with some folks on the design systems teams and they weren't aware of this either, so I put it on their radar as well. This should definitely be reflected in both apps (Focus, Fenix) so that it's a consistent experience throughout. So, as of right now, is the side dismissing fixed across everything except the portrait on Android 8? If that's the case, I think we should pause on updating for now and continue to sync up with the other teams before updating the component and make sure we keep it consistent with breakpoints/margins/etc across both apps so that we're not doubling the work. Happy to hear your thoughts as well though.

@ionutbedregeanu
Copy link
Contributor

Sounds good to me. I will put this ticket on pause until further updates

@ionutbedregeanu ionutbedregeanu moved this from In Progress to Backlog in Android Focus Nov 24, 2021
@delia-pop
Copy link
Author

This issue is no longer occurring on the 96.0.0-beta.1 (Build 353412232 GV 96.0-20211206194555) with Xiaomi Redmi Note 8T (Android 9).
Please note that the issue is Still Present on the RC 95.1.0 build.

@ionutbedregeanu ionutbedregeanu moved this from Backlog to Unprioritized in Android Focus Dec 14, 2021
@ionutbedregeanu
Copy link
Contributor

ionutbedregeanu commented May 2, 2022

@lobontiumira @delia-pop still reproducible?

@delia-pop
Copy link
Author

Tested with Google Pixel 6 (Android 12) on the latest RC 101.1.1 and Beta 102. Beta 1. I cannot reproduce this issue anymore.

Android Focus automation moved this from Unprioritized to Done Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Android Focus
  
Done
Development

No branches or pull requests

7 participants