There is a canvas and multiple json files which includes tiles . Canvas help drag and drop tiles
One of the json has many tiles while other have few. When changing canvas height dynamically that causes an issue of distance between pointer and tile while dragging.