New issue
Advanced search Search tips

Issue 907914 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 12
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Dragging app list folder does not scroll pages

Reported by stevenj...@gmail.com, Nov 22

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS x86_64 11151.33.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.57 Safari/537.36

Steps to reproduce the problem:
1. In tablet mode, drag an app folder downward towards the second app list page

What is the expected behavior?
Page should scroll

What went wrong?
Page doesn't scroll

Did this work before? N/A 

Chrome version: 71.0.3578.57  Channel: n/a
OS Version: 11151.33.0
Flash Version:
 
Components: -UI UI>Shell>Launcher
Update: I did manage to get the page to scroll, but it's super flaky.

Labels: -Pri-2 M-72 Pri-1
Owner: newcomer@chromium.org
Status: Started (was: Unconfirmed)
This only repros with very high scale factor. If you need a temp workaround, ctrl-shift-0 will return you to baseline. 
Looks like we transform AppsGridView but do not use the transformed bounds in the calculation to determine whether the app icon is in the drag buffer.
Labels: -M-72 -m-72 M-73
Bulk moving <p-1's to the next milestone because we branched to M-73.
Labels: -M-73 M-72
(didn't mean to grab these P-1's)
This will involve some refactoring to fix properly. I'll try to land and merge my short fix, then refactor in M-73.
Project Member

Comment 11 by bugdroid1@chromium.org, Dec 6

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9504f17bdd7940d0d8064259f57291baa895002e

commit 9504f17bdd7940d0d8064259f57291baa895002e
Author: Alex Newcomer <newcomer@chromium.org>
Date: Thu Dec 06 18:49:10 2018

cros: Update AppsGridView bottom drag buffer

The AppsGridView is transformed to fit on screens that use display zoom.

Use the current transform to calculate the bottom of the AppsGridView,
then consider all drags below AppsGridView "in the buffer". The old
buffer values do not make sense with the redesign, and with a scaled
display.

Bug:  907914 
Change-Id: I40e15fc8ba4f1022a9def18ac97fd0bab0d2d031
Reviewed-on: https://chromium-review.googlesource.com/c/1354479
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614429}
[modify] https://crrev.com/9504f17bdd7940d0d8064259f57291baa895002e/ash/app_list/views/apps_grid_view.cc
[modify] https://crrev.com/9504f17bdd7940d0d8064259f57291baa895002e/ash/app_list/views/apps_grid_view_unittest.cc

Labels: Merge-Request-72
Requesting merge of the quick fix, in the mean-time I will get to work on refactoring.
Cc: xiy...@chromium.org weidongg@chromium.org
I talked to weidongg@ about this, he says we implemented it this way because without transforms, the grid was jittering due to rounding errors. Was the jittering seen on an actual device, or on the emulator?

Whenever I change the UI scale, the laucher closes. So maybe it's only a problem on the emulator (when resizing the window with a mouse).
Re #13, what I tried is scale down the apps grid by divide all integer size by the scale (double) and then convert to integer size again. Is there any other way that we can avoid the rounding error?
Transform is introduced in https://chromium-review.googlesource.com/c/1259463. The intention seems to ensure the grid's visual size is bigger than  AppsGridView::GetMinimumTileGridSize, rather than rounding errors.

Can we fix the sizing issue by other means? e.g. use a smaller size for icon and decrease the padding between icon and title. Setting transform on a view indefinitely is a bit unusual and we might have similar issues in the future.
Project Member

Comment 16 by sheriffbot@chromium.org, Dec 7

Labels: -Merge-Request-72 Hotlist-Merge-Approved Merge-Approved-72
Your change meets the bar and is auto-approved for M72. Please go ahead and merge the CL to branch 3626 manually. Please contact milestone owner if you have questions.
Owners: govind@(Android), kariahda@(iOS), djmm@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 17 by bugdroid1@chromium.org, Dec 10

Labels: -merge-approved-72 merge-merged-3626
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/86e7b07e2e60777f2ee57dffd857f664b5a38211

commit 86e7b07e2e60777f2ee57dffd857f664b5a38211
Author: Alex Newcomer <newcomer@chromium.org>
Date: Mon Dec 10 22:17:32 2018

cros: Update AppsGridView bottom drag buffer

The AppsGridView is transformed to fit on screens that use display zoom.

Use the current transform to calculate the bottom of the AppsGridView,
then consider all drags below AppsGridView "in the buffer". The old
buffer values do not make sense with the redesign, and with a scaled
display.

Bug:  907914 
Change-Id: I40e15fc8ba4f1022a9def18ac97fd0bab0d2d031
Reviewed-on: https://chromium-review.googlesource.com/c/1354479
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#614429}(cherry picked from commit 9504f17bdd7940d0d8064259f57291baa895002e)
Reviewed-on: https://chromium-review.googlesource.com/c/1370722
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/branch-heads/3626@{#237}
Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437}
[modify] https://crrev.com/86e7b07e2e60777f2ee57dffd857f664b5a38211/ash/app_list/views/apps_grid_view.cc
[modify] https://crrev.com/86e7b07e2e60777f2ee57dffd857f664b5a38211/ash/app_list/views/apps_grid_view_unittest.cc

Status: Fixed (was: Started)
Since the quick fix was merged, to avoid confusion with follow up CLs, I moved the follow up work to  issue 914509 
Labels: Merge-Merged-72-3626
The following revision refers to this bug: 
https://chromium.googlesource.com/chromium/src.git/+/86e7b07e2e60777f2ee57dffd857f664b5a38211

Commit: 86e7b07e2e60777f2ee57dffd857f664b5a38211
Author: newcomer@chromium.org
Commiter: newcomer@chromium.org
Date: 2018-12-10 22:17:32 +0000 UTC

cros: Update AppsGridView bottom drag buffer

The AppsGridView is transformed to fit on screens that use display zoom.

Use the current transform to calculate the bottom of the AppsGridView,
then consider all drags below AppsGridView "in the buffer". The old
buffer values do not make sense with the redesign, and with a scaled
display.

Bug:  907914 
Change-Id: I40e15fc8ba4f1022a9def18ac97fd0bab0d2d031
Reviewed-on: https://chromium-review.googlesource.com/c/1354479
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#614429}(cherry picked from commit 9504f17bdd7940d0d8064259f57291baa895002e)
Reviewed-on: https://chromium-review.googlesource.com/c/1370722
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/branch-heads/3626@{#237}
Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437}

Sign in to add a comment