So this is causing a bug as well. If you are panning open then close, it gets stuck trying to close out at zero during the pan. Don't wrap it with this guard, and just call it everytime.