I want to move the windows when mouse button is down anywhere in the canvas. I got x & y cordinates with Touch.AbsoluteX+NWjs.WindowX but, when the window is too large, flickering appears. Is there another way to get x & y screen coordinates?
Develop games in your browser. Powerful, performant & highly capable.
Not sure it will work but what about setting touch x.y to a var when start touching, then while touching calculate the position by distance from the start point to the current touch (inside the canvas)?
No. The problem seems to be that there is a retard when the algorithm is trying to detect the window position. The result is an erroneous movement when the window is dragged. I think that getting the X and Y coordinates with javascript or something, could give better ressults.