Skip to content

kylewelsby/element-from-absolute-point

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

JavaScript document.elementFromAbsolutePoint()

CI Build Status Bower version Dependency Status

This little library adds support for finding elements using absolute X/Y coordinates of the page, especially when elements are not currently visible on the page.

The native document.elementFromPoint() only will return elements relative to the current visible viewport and return null if the element is outside of the current visible viewport.

Further reading

Installation

bower install --save element-from-absolute-point

Usage

Use as you would with document.elementFromPoint.

var element = document.elementFromAbsolutePoint(1000000, 1000000);

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This library is distributed under the MIT license. Please see the LICENSE file.

About

Support for finding elements using absolute `X`/`Y` coordinates of the page, especially when elements are not currently visible on the page.

Resources

License

Stars

Watchers

Forks

Packages

No packages published