Fixed Infinite Canvas issue on mouse event not handled in some region.
Restructuring of EndlessGrid implementation to reduce regression and improve code quality.