Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 2df9f4c

Browse files
committed
fix(scollbar): cancle custom-scrollbar on body, too buggy
1 parent 38e399f commit 2df9f4c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

containers/GlobalLayout/logic.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ export const useInit = (_store, extra) => {
2323
store = _store
2424

2525
// FIXME: do not show body scrollbar on mac
26+
// plus this plugin will break antd's affix staff
2627
/* eslint-disable no-undef */
27-
OverlayScrollbars(document.querySelectorAll('body'), {
28-
// NOT WORK!
29-
// scrollbars: { autoHide: 'scroll', autoHideDelay: 500 },
30-
})
28+
// OverlayScrollbars(document.querySelectorAll('body'), {
29+
// NOT WORK!
30+
// scrollbars: { autoHide: 'scroll', autoHideDelay: 500 },
31+
// })
3132

3233
const { online, media, platform } = extra
3334
store.markState({ online, media, platform })

0 commit comments

Comments
 (0)