during the panning as you know we change the opacity and there, we check those vars. We can calculate with - 1 and +1 or use auxiliar vars. What do you want? I prefer less operations in panning code but up to you. You are the reviewer my friend :)