Scrolling on a Chromebook trackpad just selects text
Categories
(GeckoView :: General, defect, P3)
Tracking
(firefox68 wontfix, firefox89 fixed)
People
(Reporter: tigeroakes, Assigned: m_kato)
References
Details
Attachments
(1 file)
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.)
Comment 1•5 years ago
|
||
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.
Comment 2•5 years ago
|
||
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?
Reporter | ||
Comment 3•5 years ago
|
||
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.
Comment 4•5 years ago
|
||
Also, looks like user agent is being spoofed which can change page behavior. Or this isn't geckoview.
Reporter | ||
Comment 5•5 years ago
|
||
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.
Comment 6•5 years ago
|
||
Tiger originally filed this bug in the Fenix issue tracker: https://github.com/mozilla-mobile/fenix/issues/3708
Comment 7•5 years ago
|
||
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?
Comment 8•5 years ago
|
||
(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.
Comment 9•5 years ago
|
||
(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.
Comment 10•5 years ago
|
||
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.
Comment 11•5 years ago
|
||
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?
Comment 12•3 years ago
|
||
Also happening on ChromeOS Version 87.0.4280.142, 64bit, with Firefox 82.0.2 (64-bit) flatpacked.
Comment 13•3 years ago
|
||
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.
Assignee | ||
Comment 14•3 years ago
|
||
Chromebook fires invalid motion events that is no button state. See https://bugs.chromium.org/p/chromium/issues/detail?id=704051
Assignee | ||
Comment 15•3 years ago
|
||
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).
Updated•3 years ago
|
Comment 16•3 years ago
|
||
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
Comment 17•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•