Native (coordinate) actions translate click points through the frame offset. CSS transform: scale()and a scrolled container both shift the frame's real position relative to its layout box — if the offset math ignores them, clicks land in the wrong place.