mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 19:32:02 +00:00
Fix slide mode might hide scrollbar on some linux
This commit is contained in:
parent
3b8f4bc1a2
commit
a645f28b33
1 changed files with 2 additions and 2 deletions
|
@ -132,6 +132,6 @@ Reveal.addEventListener('ready', event => {
|
||||||
})
|
})
|
||||||
Reveal.addEventListener('slidechanged', renderSlide)
|
Reveal.addEventListener('slidechanged', renderSlide)
|
||||||
|
|
||||||
const isMacLike = !!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)
|
const isWinLike = navigator.platform.indexOf('Win') > -1
|
||||||
|
|
||||||
if (!isMacLike) $('.container').addClass('hidescrollbar')
|
if (isWinLike) $('.container').addClass('hidescrollbar')
|
||||||
|
|
Loading…
Reference in a new issue