diff --git a/game/engines/default/engine/UserChat.lua b/game/engines/default/engine/UserChat.lua index c7287b0a6029456aebb6473ae4d0bcd8c9c9ebb9..2ec2da70a9d7d2c7b39afc6b5922b226232ead81 100644 --- a/game/engines/default/engine/UserChat.lua +++ b/game/engines/default/engine/UserChat.lua @@ -414,7 +414,13 @@ function _M:mouseEvent(button, x, y, xrel, yrel, bx, by, event) local citem = nil for i = 1, #self.dlist do local item = self.dlist[i] - if item.dh and y >= item.dh - self.mouse.delegate_offset_y then citem = self.dlist[i].src break end + if item.dh and by >= item.dh - self.mouse.delegate_offset_y then citem = self.dlist[i].src break end + end + print("================================") + util.show_backtrace() + for i = 1, #self.dlist do + local item = self.dlist[i] + if item.dh then print("===", y, by, item.dh - self.mouse.delegate_offset_y) end end self.on_mouse(citem and citem.login and self.channels[self.cur_channel].users[citem.login], citem and citem.login and citem, button, event, x, y, xrel, yrel, bx, by) end diff --git a/game/modules/tome/class/uiset/Minimalist.lua b/game/modules/tome/class/uiset/Minimalist.lua index f53e2ad6df51ddfa01249fd2f21e6a9716b4e10a..0b2275e70fea73ec0c2cbadbd015d39078ff47ab 100644 --- a/game/modules/tome/class/uiset/Minimalist.lua +++ b/game/modules/tome/class/uiset/Minimalist.lua @@ -1520,7 +1520,7 @@ function _M:displayChatLog(scale, bx, by) return end - profile.chat:mouseEvent(button, mx, my, xrel, yrel, bx, bx, event) + profile.chat:mouseEvent(button, mx, my, xrel, yrel, bx, by, event) end game.mouse:registerZone(bx, by, log.w, log.h, desc_fct, nil, "chatlog", true, scale) end