Skip to content

Commit

Permalink
ソング:水平方向の拡大縮小時に垂直スクロールするのを修正 (#1998)
Browse files Browse the repository at this point in the history
ソング:水平方向の拡大縮小時に垂直スクロールするのを修正 (#1995)
  • Loading branch information
KoharuYuzuki authored Apr 25, 2024
1 parent 1dcb7c0 commit 11979f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,9 @@ const onWheel = (event: WheelEvent) => {
throw new Error("sequencerBodyElement is null.");
}
if (isOnCommandOrCtrlKeyDown(event)) {
// scrollイベントの発火を阻止する
event.preventDefault();
cursorX.value = getXInBorderBox(event.clientX, sequencerBodyElement);
// マウスカーソル位置を基準に水平方向のズームを行う
const oldZoomX = zoomX.value;
Expand Down

0 comments on commit 11979f4

Please sign in to comment.