metafizzy / zdog

Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
https://zzz.dog
10.36k stars 393 forks source link

fix window variable in dragger #85

Closed h2jorm closed 4 years ago

h2jorm commented 5 years ago

When using zdog in webpack or parcel, this is not assigned to window. Use global window instead of this. Also mentioned in #49

howardcvalve commented 4 years ago

Hi @desandro, would you consider accepting this PR to fix issues for webpack/parcel users? This relies on the window global existing, which should be fine on the client. It doesn't solve the original issue mentioned in #49, but should fix the more common use case.

desandro commented 4 years ago

Thank you for this contribution! I have added this code and some more in SHA: 3566dcb30275a5999037cb2b4804d1df017b12b3. This fix has been released in v1.1.1. Email me yo@metafizzy.co if you like stickers