Fixed issue where slider end distance calculations ignored repeats.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>