Skip to content

Commit 57e6e8f

Browse files
authored
Merge pull request #158 from GursheenK/slide-cursor-visibility-issues
fix(minor): cursor visibility issues + document title
2 parents 1d0d71d + 037d35c commit 57e6e8f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

frontend/src/pages/PresentationEditor.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
import { ref, watch, useTemplateRef, provide, onMounted, onBeforeUnmount, inject } from 'vue'
5858
import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
5959
60-
import { call } from 'frappe-ui'
60+
import { call, usePageMeta } from 'frappe-ui'
6161
6262
import EditorNavbar from '@/components/EditorNavbar.vue'
6363
import NavigationPanel from '@/components/NavigationPanel.vue'
@@ -387,4 +387,10 @@ const openLayoutDialog = (action, index) => {
387387
layoutAction.value = action
388388
insertIndex.value = index
389389
}
390+
391+
usePageMeta(() => {
392+
return {
393+
title: presentationDoc.value?.title || 'Slides',
394+
}
395+
})
390396
</script>

frontend/src/pages/Slideshow.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,14 @@ const slideLeave = (el, done) => {
250250
}
251251
252252
const resetCursorVisibility = () => {
253+
if (slideCursor.value != 'none') return
253254
let cursorTimer
254255
255256
slideCursor.value = 'auto'
256257
clearTimeout(cursorTimer)
257258
cursorTimer = setTimeout(() => {
258259
slideCursor.value = 'none'
259-
}, 3000)
260+
}, 9000)
260261
}
261262
262263
const handleFullScreenChange = () => {

0 commit comments

Comments
 (0)