components icon indicating copy to clipboard operation
components copied to clipboard

Can't drag scroll bar for virtual scroll region in Firefox

Open MRezaHa opened this issue 5 years ago • 8 comments

Reproduction

Use example page https://material.angular.io/cdk/scrolling/examples

Steps to reproduce: 1-open the example page in Firefox 2-try to drag the scrollbar handle

Expected Behavior

Expected that drag handle moves when mouse moving

Actual Behavior

scrollbar doesn't move

Environment

  • CDK/Material: 10.2.7/9.2.4/11.2.1
  • Browser(s): Browser(s): FireFox 85.0.2 (64-bit)
  • Operating System : Windows 10

MRezaHa avatar Feb 17 '21 19:02 MRezaHa

Weirdly, the example "Virtual scroll with no template caching" is the only one that does work.

jelbourn avatar Feb 19 '21 21:02 jelbourn

All of the examples worked for me on Firefox 85 and Windows 10.

crisbeto avatar Feb 20 '21 09:02 crisbeto

Would it be possible to give any hot-fix for this issue ?

MRezaHa avatar Feb 20 '21 11:02 MRezaHa

I can definitely reproduce on FF 85 w/ Windows 10 Scrolling _ Angular Material — Mozilla Firefox 2021-02-22 09-55-59

jelbourn avatar Feb 22 '21 18:02 jelbourn

Problem in hardware acceleration. In our project we use this workaround for disable it for firefox:

.cdk-virtual-scroll-viewport {
  // fix scroll grabbing error in Firefox
  // with hardware acceleration
  -webkit-transform: translateZ(0);
  transform: none;
}

In firefox 86-87 was created some changes. Now on radeon graphics cards scroll works normally. But intel and nvidia user experience still corrupted

zy2ba avatar Apr 01 '21 11:04 zy2ba

I have just tested this bug on Firefox (Nightly) 92.0a1 (2021-08-08) (64-bit) and it seems to be Fixed by Firefox in Nightly versions.

MRezaHa avatar Aug 08 '21 14:08 MRezaHa

Had same issue with react-window, ended up here.

I have just tested this bug on Firefox (Nightly) 92.0a1 (2021-08-08) (64-bit) and it seems to be Fixed by Firefox in Nightly versions.

@MRezaHa 's solution worked - even without nightly simply updating firefox to latest solved the issue.

slch avatar Sep 08 '21 05:09 slch

I have the same issue in firefox

ngdevc avatar Sep 06 '23 09:09 ngdevc