加入追踪
This commit is contained in:
1 parent
859c78173a
commit
ca719ba1d4
17 files changed
+77
-47
No files matched your search
@@ -36,6 +36,7 @@
|
||||
:disabled="!canUseSection(section.key)"
|
||||
:aria-selected="activeSection === section.key && canUseSection(section.key)"
|
||||
:title="canUseSection(section.key) ? $t(section.titleKey) : $t('settings.floatingMenuParticleOnly')"
|
||||
:data-matomo-event="`navigation.${section.key}`"
|
||||
@click="activateSection(section.key)"
|
||||
>
|
||||
<span class="floating-section-index">{{ index + 1 }}</span>
|
||||
@@ -48,6 +49,7 @@
|
||||
:class="{ collapsed: !bottomPanelExpanded }"
|
||||
:aria-expanded="bottomPanelExpanded"
|
||||
:title="timelineCollapsed ? '展开时间轴' : '点击收起,拖动调整高度'"
|
||||
data-matomo-event="timeline.toggle"
|
||||
@pointerdown="onTimelineTogglePointerDown"
|
||||
@click="toggleTimeline"
|
||||
>
|
||||
@@ -78,6 +80,7 @@ import TransferProgressOverlay from './views/TransferProgressOverlay.vue'
|
||||
import { transferProgress } from './editor/transferProgress'
|
||||
import { provideParticlePanel } from './views/particle-panel/particlePanelContext'
|
||||
import { PARTICLE_SECTIONS } from './views/particle-panel/particleSections'
|
||||
import { trackMatomoEvent } from './editor/analytics'
|
||||
|
||||
const store = useParticleStore()
|
||||
installSystemSettingsCache(store)
|
||||
@@ -188,6 +191,7 @@ function onTimelineTogglePointerDown(e: PointerEvent) {
|
||||
window.removeEventListener('pointerup', finish)
|
||||
window.removeEventListener('pointercancel', finish)
|
||||
if (!dragging) return
|
||||
trackMatomoEvent('timeline.resize')
|
||||
if (timelineH.value > 0) saveTimelineHeight()
|
||||
// 拖拽后的 click 与本次手势属于同一操作,不能再次切换折叠。
|
||||
ignoreTimelineToggleClick = true
|
||||
|
||||
Reference in new issue
Block a user