lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
697 stars 60 forks source link

flock.ugen.mouse.cursor breaks with jQuery 3.x #205

Closed colinbdclark closed 6 years ago

colinbdclark commented 7 years ago

jQuery introduced API-breaking changes to their offset() method in 3.x. In particular, it appears that it will directly throw an error if the target of .offset() isn't a linked, visible DOM element.

Flocking, however, will call this method on any target supplied to flock.ugen.mouse.cursor. Clearly, since jQuery is making their library less robust, we'll have to make ours more so.