gorork / paper-audio-player

A custom audio player with paper material style
http://nadikun.com/code/paper-audio-player/demo
MIT License
197 stars 58 forks source link

Fix issue where there are parent containers and the offset gets mixed up #6

Closed markmandel closed 9 years ago

markmandel commented 9 years ago

Dropping the original version in the middle of a material design lite layout made the audio traversal code not work, as the offsets were different than expected.

Switching to using getBoundingClientRect() solved this issue, and helped simplify the code a little.

gorork commented 9 years ago

Thanks @markmandel!