simplify snappedItemId $watcher shortest distance calculation