Only grab objects that are under the cursor. Possible fix for #165.