drag and drop works on resized canvas as well