-
Notifications
You must be signed in to change notification settings - Fork 312
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
Fix: マウスホイールでパラメータ調整ができないバグ(#1437)を修正 #1440
Fix: マウスホイールでパラメータ調整ができないバグ(#1437)を修正 #1440
Conversation
自分の見立てではpreviewSliderHelper.tsには直接値を変更する機能はなく、スクロール時はonChange(value)を呼び出すだけのように見えました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMです!
なんで今まで問題なく動いていたのか謎ですね...
あ、発生原因を書き忘れていたので一応書き残しておきます。 あとJSDocをミスっていることに気が付いてしまったので、そのコメントアウトだけ修正しました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
onChangeの処理とhandleParameterChangeで状態変更の流れが2つあるので、統一した方が良さそうに感じました!
(ちなみにhandleParameterChangeの方だけ値調整のadjustが呼ばれる感じでした)
ただはまあ問題はないと思うので、ちょっと勝手ながらFIXMEコメントだけ追加させていただきます・・・!
@@ -65,7 +80,7 @@ export const previewSliderHelper = (props: Props): PreviewSliderHelper => { | |||
// Reactive references of each props | |||
const modelValue = computed(props.modelValue); | |||
const min = computed(() => (props.min && props.min()) ?? 0); | |||
const max = computed(() => (props.max && props.max()) ?? 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ただのメモですが、元々デフォルトパラメーターが100に設定されてたのは、quasarのデフォルト値がそうだったからだったりします。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そうだったんですね!それならまあどちらでも良かったかもです。
内容
#1437 の修正PRです。
Vue力不足により、再生と保存にしっかり反映されること以外大丈夫なのかよく分かっていません…。
唯一機能していたモーフィングの実装を真似したのですが、ダメそうだったらcloseしていただいて他の方にお任せしようかと…!
関連 Issue
close #1437
スクリーンショット・動画など
_VOICEVOX.-.Ver.999.999.999.2023-07-31.07-30-02.mp4
その他