Hey everyone, I’m having trouble understanding why I can’t position this object differently on mobile. The desktop breakpoint runs but the mobile doesn’t. What could I be missing? Any help or hint is appreciated!
UPDATE: I used and Xcode Simulator and it worked I only had to change the window.innerWidth to
(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
window.addEventListener('resize', handleResize);
const handleResize = () => {
if (window.innerWidth <= 489) {
//mobile breakpoint
group.position.x = 0;
} else {
//desktop
group.position.x = 3;
}
}
handleResize();