Makes snapToPanel require a valid target. Fixes #22.