A viral classroom moment has reignited anxiety about shrinking attention spans and the rise of second-screen viewing.