-
Solly Ross authored
Commit 5108c463 caused a regression in the case where scrolling is used -- getPosition return position relative to the viewport, while getEventPosition expected a position relative to the page. As per https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect, the fix for this is simply to add the `pageXOffset` and `pageYOffset` to the output of `getBoundingClientRect()`. Fixes #459.
7e54fb93
Name |
Last commit
|
Last update |
---|---|---|
docs | ||
images | ||
include | ||
tests | ||
utils | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE.txt | ||
README.md | ||
favicon.ico | ||
karma.conf.js | ||
package.json | ||
vnc.html | ||
vnc_auto.html |