Optimized performance of inner shadow view
Made maximum pan distance configurable