Just a guess but is there an OnMouseUp event for the inventorySlots as well and did you try if this function works for the middle mouse?
I got some problems with OnClick events in the past and toptally changed to the OnMosueDown and OnMouseUp stuff then, as e.g. labels or other controls don't have an OnClicked event as it seems.
Edit:
Seems there is only this global function, so this really might be a bug if MOUSE_BUTTON_INDEX_MIDDLE is not given
Lua Code:
function ZO_InventorySlot_OnSlotClicked(inventorySlot, button)
inventorySlot = ZO_InventorySlot_GetInventorySlotComponents(inventorySlot)
if button == MOUSE_BUTTON_INDEX_LEFT then
-- Left clicks are only used as drops at the moment, use the receive drag handlers
ZO_InventorySlot_OnReceiveDrag(inventorySlot)
elseif button == MOUSE_BUTTON_INDEX_RIGHT then
-- Right clicks only open the context menu
if ShouldHandleClick(inventorySlot) then
ZO_InventorySlot_ShowContextMenu(inventorySlot)
end
end
end
I'll test this also with my mouse, maybe it's a driver issue or whatever. Will report here
Edit:
After some tests it works fine for me and my mouse.
Also on the mail send panel!
Chat output will be:
So this seems to be related to your code (
maybe change the variable name button to p_button like I did!) or to your mouse driver