1561927 - Scrolling On A Chromebook Trackpad Just Selects Text

Copy Summary▾ View ▾ Closed Bug 1561927 Opened 6 years ago Closed 4 years ago Scrolling on a Chromebook trackpad just selects text * Summary: Scrolling on a Chromebook trackpad just selects text Product: GeckoView See Open Bugs in This Product File New Bug in This Product Watch This Product Component: General See Open Bugs in This Component Recently Fixed Bugs in This Component File New Bug in This Component Watch This Component Version: 69 Branch Platform: Unspecified Android Type: defect Priority: P3 Severity: normal Points: --- Status: RESOLVED FIXED Status: RESOLVED FIXED Mark as Assigned Milestone: 89 Branch Iteration: --- Project Flags:
Accessibility Severity ---
Performance Impact ---
Webcompat Priority ---
Webcompat Score ---
Tracking Flags:
Tracking Status
firefox68 --- wontfix
firefox89 --- fixed
Tracking Status
relnote-firefox ---
firefox68 wontfix
firefox89 fixed
firefox148 --- ---
firefox149 --- ---
firefox150 --- ---
Assignee: m_kato Assignee: Reset Assignee to default Mentors: --- QA Contact: Reset QA Contact to default Reporter: tigeroakes Triage Owner: owlish CC: 7 people Depends on: --- Blocks: --- Regressions: --- Regressed by: --- URL: See Also: 1717464 1587995 github.com/mozilla-mobile/fenix/issue... bugs.chromium.org/p/chromium/issues/d... Alias: --- Keywords: --- Whiteboard: --- QA Whiteboard: --- Has STR: --- Change Request: --- Bug Flags:
behind-pref
sec-bounty ?
sec-bounty-hof
in-qa-testsuite
in-testsuite
qe-verify
Signature: None This bug is publicly visible.
Bug 1561927 - Ignore weird motion event on Chrome OS. r=#geckoview-reviewers 4 years ago Makoto Kato [:m_kato] 48 bytes, text/x-phabricator-request Details | Review
Bottom ↓ Tags ▾ Timeline ▾

User Agent: Mozilla/5.0 (X11; CrOS x86_64 12105.68.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.88 Safari/537.36

Steps to reproduce:

On a Chromebook, try scrolling on the page using two fingers on a trackpad.

Actual results:

Text starts getting selected from wherever the cursor rests on the page.

Expected results:

The page should scroll.

(It still kind of works, because eventually you start selecting text outside the viewport and the page shifts for that. Selecting is the reverse of the scrolling direction, however.)

Is the two finger scrolling gesture being reported as a scroll wheel event? Randall says scrolling with a mouse scroll wheel works correctly, so this problem is specifically related to the trackpad gesture.

OS: All → AndroidPriority: -- → P3

I've verified that a bluetooth mouse works as expected in Fenix Preview release. The scroll wheel scrolls the content. So maybe the two finger scroll is not being sent as an android scroll wheel event on chromebooks?

It looks like once one finger is on the trackpad, the second is only used for selection. Any movement with the second finger selects text in the corresponding direction.

Also, looks like user agent is being spoofed which can change page behavior. Or this isn't geckoview.

I tested on https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event#Scaling_an_element_via_the_wheel and couldn't get a wheel event to fire using the trackpad.

Tiger originally filed this bug in the Fenix issue tracker: https://github.com/mozilla-mobile/fenix/issues/3708

status-firefox68: --- → affectedSee Also: → https://github.com/mozilla-mobile/fenix/issues/3708Summary: Scrolling on a trackpad just selects text → Scrolling on a Chromebook trackpad just selects text

Also, looks like user agent is being spoofed which can change page behavior. Or this isn't geckoview.

:rbarker are you saying that this isn't a GV issue, or that we need to investigate whether the user agent spoofing is changing the page behaviour? Is there more investigation we need to do here?

Flags: needinfo?(rbarker)

(In reply to Emily Toop (:fluffyemily) from comment #7)

Also, looks like user agent is being spoofed which can change page behavior. Or this isn't geckoview.

:rbarker are you saying that this isn't a GV issue, or that we need to investigate whether the user agent spoofing is changing the page behaviour? Is there more investigation we need to do here?

I'm saying based on the UA, either Gecko is UA spoofing or it is actually WebView and not GeckoView.

Flags: needinfo?(rbarker)

(In reply to Tiger Oakes from comment #0)

User Agent: Mozilla/5.0 (X11; CrOS x86_64 12105.68.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.88 Safari/537.36

(In reply to Randall Barker [:rbarker] from comment #4)

Also, looks like user agent is being spoofed which can change page behavior. Or this isn't geckoview.

I think Tiger's comment 0 lists a Chrome UA because he probably filed this bug using Chrome on his Chromebook. He said in the Fenix issue that he can reproduce this bug in Fenix, R-B, and Focus+GV. If he switches Focus from GV back to WebView, then the text selection works correctly.

Then sounds like either the native android scroll wheel events are not being passed to GeckoView's PanZoomController or the chromebook isn't generating them. We use scroll wheel events in FxR to scroll content and do not have this problem.

Do we need to detect two-finger drag events and then synthesize scroll events for Gecko APZ? Would that be the responsibility of GV or A-C?

Chris Peterson [:cpeterson]

Updated

6 years ago
See Also: → 1587995

Also happening on ChromeOS Version 87.0.4280.142, 64bit, with Firefox 82.0.2 (64-bit) flatpacked.

Not happening on same ChromeOS without Linux emulation. 85.0.0-beta.7 (Build #2015786831), AC: 70.0.11, 3d692de26, GV: 85.0-20210110185809, AS: 67.2.0.

Chromebook fires invalid motion events that is no button state. See https://bugs.chromium.org/p/chromium/issues/detail?id=704051

See Also: → https://bugs.chromium.org/p/chromium/issues/detail?id=704051 Attached file Bug 1561927 - Ignore weird motion event on Chrome OS. r=#geckoview-reviewers — Details

Android app on Chrome OS doesn't use scroll event on touch pad scroll. And this generate wired mouse event via it.

So we should add a workaround like Blink (https://crbug.com/704051).

Phabricator Automation

Updated

4 years ago
Assignee: nobody → m_kato Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/d4b5e3c2ae1e Ignore weird motion event on Chrome OS. r=geckoview-reviewers,agi

https://hg.mozilla.org/mozilla-central/rev/d4b5e3c2ae1e

Status: UNCONFIRMED → RESOLVEDClosed: 4 years ago status-firefox89: --- → fixedResolution: --- → FIXEDTarget Milestone: --- → 89 Branch
Ryan VanderMeulen [:RyanVM]

Updated

4 years ago
status-firefox68: affected → wontfix
Kevin Brosnan [Ex-Mozilla]

Updated

4 years ago
See Also: → 1717464 You need to log in before you can comment on or make changes to this bug. Top ↑

Attachment

Hide Details

General

Creator: Makoto Kato [:m_kato] Created: Updated: Size:

Description

File Name

Content Type

Raw Diff Splinter Review

Tag » How To Scroll On Chromebook