fix(challenge modal): snap close button to whole pixels

This commit is contained in:
Tommaso Casaburi
2026-04-15 14:44:46 +07:00
parent 13a7392df0
commit ec8678cc4e
2 changed files with 5 additions and 3 deletions
@@ -304,8 +304,8 @@ const Challenge = ({ challenge, closeModal, abandonModal }: ChallengeProps) => {
className={containerClasses.join(' ')}
ref={nodeRef}
style={{
x: isMobile ? mobileX : x,
y: isMobile ? mobileY : y,
x: isMobile ? mobileX : x.to((value) => Math.round(value)),
y: isMobile ? mobileY : y.to((value) => Math.round(value)),
touchAction: 'none',
}}
>