Skip to content

[bug] cdk-overlay causes cdk-virtual-scroll's middle click scroll to break #14941

@JohnDeved

Description

@JohnDeved

What is the expected behavior?

when you press the middle mouse button you can drag to scroll.
2019-01-24_14-16-53

What is the current behavior?

when you press the middle mouse button to drag-scroll, the page stops scrolling after a few centimeters

What are the steps to reproduce?

https://stackblitz.com/edit/hello-angular-6-tntkqc

  1. use google chrome
  2. use middle click scroll

2019-01-24_14-14-37

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Only Google Chrome is affected.
Firefox and Edge are working as expected.

Is there anything else we should know?

workarround is to document.querySelector<HTMLElement>('.cdk-overlay-container').hidden = true; while the user is scrolling

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions