GestureSign icon indicating copy to clipboard operation
GestureSign copied to clipboard

Get Screen by Cursor.Position may cause some issues

Open getandplay opened this issue 4 years ago • 0 comments

I have read the code in MessageWindow.

And found that you are using Cursor.Position to get Screen, then get the touchpoints depends on the Screen you got.

So to make sure the touchpoints are correct, you should make sure the Screen you get is correct.

But unfortunately, when we touch some Applications like Chrome or Word (not on the title bar), the Cursor.Position will not be changed, so it is possible to get the wrong Screen.

Like you have 2 monitors, one is touchable, the other is a normal one. And your cursor now is on the normal screen, then you touch the Chrome, and the Cursor.Position will not be changed, still at the normal screen, Boom, you get a wrong screen, then the touchpoints will be wrong too.

So is it that possible to get the correct touchpoints at the condition.

getandplay avatar Nov 18 '20 22:11 getandplay