canvas dragging issue fix