Don't know if this has been addressed already or not but there seems to be a problem when zooming in & out when the script is active.
See below and notice the difference when zooming in/out with and without the script active. I think it's pretty self-explanatory: