# fix\(web\): fix native scrollbar being intercepted by sidebar rail on windows and linux \(\#618\) · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/4b6a0c433cb808a0ebdd30ec48e799b6543d2cc9)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 4b6a0c433cb808a0ebdd30ec48e799b6543d2cc9

Requested commit: 4b6a0c433cb808a0ebdd30ec48e799b6543d2cc9

Commit: 4b6a0c433cb808a0ebdd30ec48e799b6543d2cc9

Tree: a2f9785c56c8f12ccfc9bf71c9eae63dcc3a5991

Author: Sai Shankar

Committer: GitHub

## Message

```
fix(web): fix native scrollbar being intercepted by sidebar rail on windows and linux (#618)

the rail's 16px hit area at z-20 sits right where the native os scrollbar
lives when the sidebar is in offcanvas mode and collapsed. this causes clicks
and drags on the scrollbar to toggle the sidebar instead on windows and linux.

scoping pointer-events-none to [data-collapsible=offcanvas][data-state=collapsed]
fixes the interception without affecting icon mode where the rail needs to stay
clickable.
```

## Parents

- [304a14de7d6f0b9977c8ecc4bced5b5f359ce02e](https://git.cafe/screen/t3code-personal/commit/304a14de7d6f0b9977c8ecc4bced5b5f359ce02e?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/4b6a0c433cb808a0ebdd30ec48e799b6543d2cc9?format=markdown)
