gilmoreorless / jquery-nearest

Find the elements in a page that are closest to a particular point or element, based on pixel dimensions
http://gilmoreorless.github.io/jquery-nearest/
MIT License
98 stars 23 forks source link

onlyX / onlyY #7

Closed michal-novacek closed 10 years ago

michal-novacek commented 11 years ago

Added an option to only check the X or Y distance

gilmoreorless commented 10 years ago

Thanks, that's a good use case I hadn't considered.

I should clean up the checkHoriz and checkVert options to be a bit more consistent (I'm thinking maybe sameX: true instead of checkHoriz: false, and similar for sameY vs checkVert

gilmoreorless commented 10 years ago

Quick update: This feature has now been released to plugins.jquery.com and Bower as version 1.3.0.