Closed veswill3 closed 8 years ago
I just noticed that if height
and width
of the display are the same then it works fine, which is why the test did not catch the issue.
Interesting, I will definitely have a look.
Confirming.
@veswill3 fixed just now :)
Thanks for the quick update @ondras!
I saw issue #90 but I do not have the ability to reopen it. I am having trouble getting ROT.Display::eventToPosition(e) to work correctly with a transposed hex display. It is returning incorrect coordinates. I noticed that ROT.Display.Hex.prototype.eventToPosition has code that accounts for the transpose flag, so I am not sure what is going wrong.
I created a jsfiddle to show the issue. You can verify that it works in normal mode by switching the
transpose
flag tofalse
https://jsfiddle.net/m0ba0ojg/
Please let me know if I made a mistake or if I am implementing this incorrectly. If not I would be happy to tinker with it and submit a pull request.