demo/snap: fix anchor range check in drawAnchors