Then use overflow:auto in your App to enable scrolling. Reduce size of the browser window to see the scrollbars.
Expected Behavior
When you click on the scrollbars, you should be able to drag things to scroll.
Actual Behavior
When you click on the scrollbars, nothing happens. If you try to scroll with a touch pad, it scrolls. If you try to scroll with a touch surface, it scrolls.
I'm using Chrome. This also happens in Teams task modules.
Root cause
If you look at what's blocking the click, it is this:
Reproduction
Use react teams provider to create your website. In my case, my app root looks like this:
Then use overflow:auto in your App to enable scrolling. Reduce size of the browser window to see the scrollbars.
Expected Behavior
When you click on the scrollbars, you should be able to drag things to scroll.
Actual Behavior
When you click on the scrollbars, nothing happens. If you try to scroll with a touch pad, it scrolls. If you try to scroll with a touch surface, it scrolls.
I'm using Chrome. This also happens in Teams task modules.
Root cause
If you look at what's blocking the click, it is this:
From https://github.com/OfficeDev/microsoft-teams-ui-component-library/blob/main/src/lib/withTheme.tsx
SVGs don't have top and left attributes. These definitions are covering up the scollbars. Setting pointer-events: none fixes it.