fix: replace stale snapToScale ref with st.snapToScale

This commit is contained in:
2026-07-25 18:39:47 +07:00
parent 513a6b082c
commit 68eb6d5261
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5600,7 +5600,7 @@ const PianoRollTabEditor = ({ st, zoom, bpm, viewportWidth, onClose, onUpdateNot
className: `w-7 h-4 rounded-full transition-colors relative ${(st.snapToScale !== undefined ? st.snapToScale : true) ? 'bg-yellow-600' : 'bg-zinc-700'}`,
style: { padding: 0 }
}, /*#__PURE__*/React.createElement("div", {
className: `w-3 h-3 rounded-full bg-white absolute top-0.5 transition-transform ${snapToScale ? 'translate-x-3.5' : 'translate-x-0.5'}`
className: `w-3 h-3 rounded-full bg-white absolute top-0.5 transition-transform ${(st.snapToScale !== undefined ? st.snapToScale : true) ? 'translate-x-3.5' : 'translate-x-0.5'}`
}))), /*#__PURE__*/React.createElement("div", {
className: "flex items-center gap-1 text-xs"
}, /*#__PURE__*/React.createElement("span", {
File diff suppressed because one or more lines are too long