Commit 266cf3c8 authored by zhengke's avatar zhengke

画布滚动 画布禁止滚动换页

parent 422ba4c8
......@@ -268,6 +268,7 @@ const throttleScaleCanvas = throttle(scaleCanvas, 100, { leading: true, trailing
const throttleUpdateSlideIndex = throttle(updateSlideIndex, 300, { leading: true, trailing: false })
const handleMousewheelCanvas = (e: WheelEvent) => {
return
e.preventDefault()
// 按住Ctrl键时:缩放画布
......
......@@ -6,8 +6,11 @@
<Thumbnails class="layout-content-left" />
<div class="layout-content-center" style="overflow: hidden;">
<CanvasTool class="center-top" />
<!-- :style="{ height: `calc(100% - ${remarkHeight + 40}px)` }" -->
<Canvas class="center-body" :style="{ height: `calc(100% - 40px)`}" />
<div style="height: 883px;overflow: auto;">
<!-- <Canvas class="center-body" :style="{ height: `calc(100% - 40px)`}" /> -->
<Canvas class="center-body" :style="{ height: viewportRatio<1?'calc(1240px - 40px)':'calc(1754px - 40px)'}" />
</div>
<!-- <Remark
class="center-bottom"
v-model:height="remarkHeight"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment