In mobile safari, in the course of handling touchmove
for an element, I change the className
of that element. Unfortunately, the visual change does not occur while the user is scrolling, or until the very end of an inertial scroll.
What can I do to get the className
to visually take immediately?
More: Apparently this isn't limited to className changes, but seemingly any change to the DOM, such as innerHTML
and style
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…