fix a bug if mouse is clicked and moved side the heatmap