Skip to content

Commit

Permalink
rebirth chart preview position fix attempt 46
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Mar 14, 2022
1 parent b6cec67 commit 7fc7e78
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ t[#t+1] = Def.NoteFieldPreview {
-- I DO NOT KNOW WHY THIS IS NECESSARY
-- IT DOES NOT MAKE ANY SENSE
if getWheelPosition() then
self:x(rightHalfXBegin + 15)
ms.ok(self:GetZoom())
self:x((rightHalfXBegin + 75) * self:GetZoom())
else
self:x(rightHalfXBegin + (actuals.Width - rightHalfXBegin) / 2)
end
Expand All @@ -178,6 +179,7 @@ t[#t+1] = Def.NoteFieldPreview {
end
local z, l, r = getSizeForStyle()
self:zoom(z)
self:playcommand("SetPosition")
self:SetConstantMini(ReceptorSizeToMini(z))
-- when changing zoom of the notefield, the receptors change position just like the length needs to
-- so need to move the notefield up or down to compensate for the change in zoom
Expand Down

0 comments on commit 7fc7e78

Please sign in to comment.