Slide where a row of pixels turns from light to dark. The row of differences below lights up only at the jump, because an edge is a change in brightness.
An edge is not a dark pixel or a bright one. It is the change between them — the one place the difference is large.