stoffeastrom/touche

fix offset calculation in T.utils.getRect

Closed this issue · 4 comments

fix offset calculation in T.utils.getRect
peol commented

When's this not working?
I tried programmatically scroll the test index page and all test still passes.

Haven't tested it myself yet but apparently offsetTop, offsetLeft is offset from parent so if you have more than one nested element? So maybe if we add more nested elements for the test..

peol commented

Hmm, OK. I'll take a swing at it on sunday.

Doesn't work all the way. We need to use getBoundingClientRect instead