code: @Override
  	protected void resetDrag()
  	{
  		if (!isDraggingItemStack())
  			return;
  
  		//if (!pickedItemStack.isEmpty())
  		pickedItemStack = draggedItemStack.copy();
  
  		draggedSlots.forEach(s -> s.setDraggedItemStack(ItemStack.EMPTY));
  
  		draggedSlots.clear();
  		draggedItemStack = null;
  		dragType = -1;
  	}
docs: Resets the dragging state.