Moveable Window
Hi vb1992,
I am developing on a tablet with a Resistive touch screen so it requires pressure to define the X & Y coordinates, I supect that on a Capacitive screen that the X & Y jitters because a persons finger (or stylus) is only a few pico farads (which will vary with angle and pressure), and that the resolution of the XY point may move even if you simply hold your finger completely still. You could try increasing the resolution figure to a higher number, before you allow the screen to reposition itself.
I could improve the routine further with buffered XY points and average over a time period, but for my use it is adequate because on a Resistive screen it is relatively smooth and that is what I am developing the software for.
But thanks for the heads up on the linked code, it looks an interesting solution.
Regards