nelsoncash/angular-ripple

Ripple placement in a scrolling div

tradiff opened this issue · 1 comments

Great directive! FYI the ripple placement is calculated incorrectly when the element is placed in a scrolling div. The further down you scroll, the more the placement becomes incorrect. Example:
http://plnkr.co/edit/uQy4VhHfxgoXiAhidCcc?p=preview

Note: this also happens for horizontal scrolling.

Hey @travistx,

Thanks for filing the bug with a demo! I updated the getPos function and released version 0.0.3 to accommodate for scrolling divs. Check it out: http://plnkr.co/edit/1QPPD3etdK4fdBH3iyO9?p=preview