eclipsesource / tabris

Tabris for Eclipse RAP
https://eclipsesource.com/products/tabris
53 stars 18 forks source link

Tabris 2.x: Add a way of knowing the location where the user last touched #481

Closed mkempka closed 3 years ago

mkempka commented 4 years ago

Back when we worked with Tabris 1.x we used Display.getCursorLocation() to get the position of where a user touched last. In Tabris 2.x (iOS) this returns always { 0, 0 }.

Please add a way to know where the user last touched. This is important in conjunction with https://github.com/eclipsesource/tabris/issues/480

ifurnadjiev commented 4 years ago

Do you need this functionality on iOS only? @karolszafranski will implement in tabris.js 2.x a global touch listener that will set cursorLocation every time the user touches the screen.

mkempka commented 4 years ago

We need this solely in conjunction with #480. If we get a possibility for Android (or Windows) for that, too, then we also need the touch location there, too. It's not mission crucial though.