thenikso / angular-inview

AngularJS directive to check if a DOM element is in the browser viewport.
http://thenikso.github.io/angular-inview/
MIT License
480 stars 112 forks source link

[2.0] offset cannot be defined #58

Closed jrencz closed 9 years ago

jrencz commented 9 years ago

any attempt to create an offset results in TypeError: Illegal invocation. It is so due to the fact that in offsetRect an attempt to write read-only properties of ClientRect is made. ClientRect properties are getters but setters are not defined.

thenikso commented 9 years ago

the implementation was probably incomplete. I'll check out your PR regarding that. Thanks!