Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ソング:水平方向の拡大縮小時に垂直スクロールするのを修正 #1998

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,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
Loading