EditorView screenPositionFromMouseEvent is deprecated..how fix dependant packages?


#1

Hello guys…after the latest update a few package have stop working, probably the most important fr me is haskell ide, looking the code the problem seems to be screenPositionFromMouseEvent from EditorView, the latest api doesnt include that method…

How can fix that package??..this change seems motivated to the new react editor (which is pretty cool because I love react) but I cant found any documentation about this change


#2

Add a issue to the relevant packages to inform the maintainers.


#3

I think they should use the Editor::screenPositionForPixelPosition method instead.

https://github.com/atom/atom/blob/master/src/editor.coffee#L2070-L2071


#4

Made this PR to ide-haskell that seems to fix it: https://github.com/chaika2013/ide-haskell/pull/12


#5

Crud, now that I look at the results, I’m not so sure it’s up to spec, or at least the row and col coordinates on the screenPt seem off. How does one go from jQuery.Event coordinates to screen row/col?