Fenix: [Bug] Capacitance keyboard scrolling on Blackberry KeyOne

Created on 13 Mar 2020  ·  13Comments  ·  Source: mozilla-mobile/fenix

The BlackBerry KeyOne has a physical keyboard with capacitance, which allows trackpad-like scrolling. This works in the old Firefox Android, but is not working in Firefox Preview Production (v4.0.0) on Android 8.1.0.

Browsing gv 🐞 bug

Most helpful comment

I am also a KEY2 user experiencing this. I found this helpful documentation for the Priv, which is another BlackBerry android with a capacitive keyboard. While I don't know for sure if the KeyOne and KEY2 work the same, I'd be surprised if they don't.

According to BlackBerry's documentation:

If you have custom scrollable views, to provide consistent scrolling behavior, you should ensure that your views handle mouse scroll wheel movement with either an external mouse connected to any Android device or external touchpad that behaves as a pointer device.

You should make sure that:

  • Motion on the scrollwheel moves your view in the same direction as a ScrollView for vertical movement, or as a HorizontalScrollView for horizontal movement.

  • You consider the magnitude of the events; if you move your view the same distance for any mouse scroll event without considering the magnitude, your view is likely to move too fast and not smoothly.

They also state that "without extra development, application UIs built with standard Android™ view containers such as ScrollView...provide scrolling behavior for motion on the touch keyboard", which probably explains why the settings menu works.

All 13 comments

Same here. It was working very well a few versions ago (on Firefox preview), now not working at all. Tested on Blackberry KeyOne, Key2 and Priv.

Do you have a more specific regression range for this, please (we don't have a Blackberry KeyOne to test this on)?

You can use mozregression to find a regression range. https://mozilla.github.io/mozregression/install.html

Ok, I've just finished testing almost every version down to 2.3.0. This was the last version in which the keyboard scroll works. Something changed between 2.3.0 and 3.0.0 beta1 that made the scrolling inoperable.
I hope it helps. If there's anything else I can help with please let me know.

Same here on Key2.
Was working but since the upgrade to the latest version (79.0.5 I believe) scrowling using the capacitance keyboard isn't possible anymore.

Confirmed on my KEY2 as well. Worked fine with Fennec, forced to update to Fenix with latest Firefox android update.

Used to work before the update on my Key2 and now it no longer works as of Firefox for Android 79. Can confirm.

Same problem with my key2 it's really incapacitating.

KEY2 user here...good to know I am not alone. I would have thought that scrolling on the keyboard and screen generated the same type of scroll message to the app. Strange!

The settings screen does work with capacitive scrolling, but not the actual browser window.

Yes, I can confirm, that scrolling works in the settings menu, but doesn't work on the web pages, where you actually need it.

I am also a KEY2 user experiencing this. I found this helpful documentation for the Priv, which is another BlackBerry android with a capacitive keyboard. While I don't know for sure if the KeyOne and KEY2 work the same, I'd be surprised if they don't.

According to BlackBerry's documentation:

If you have custom scrollable views, to provide consistent scrolling behavior, you should ensure that your views handle mouse scroll wheel movement with either an external mouse connected to any Android device or external touchpad that behaves as a pointer device.

You should make sure that:

  • Motion on the scrollwheel moves your view in the same direction as a ScrollView for vertical movement, or as a HorizontalScrollView for horizontal movement.

  • You consider the magnitude of the events; if you move your view the same distance for any mouse scroll event without considering the magnitude, your view is likely to move too fast and not smoothly.

They also state that "without extra development, application UIs built with standard Android™ view containers such as ScrollView...provide scrolling behavior for motion on the touch keyboard", which probably explains why the settings menu works.

Was this page helpful?
0 / 5 - 0 ratings