WarpPointer side effect in GLCanvas ?

I'm building an app which sub-classes wx.glcanvas.GLCanvas, and I spent some
effort implementing a mouse click procedure to pull the click point to the
centre of the window. My procedure involved some geometry to calculate the
new values to apply to glTranslate to achieve the requirement. OK, worked
fine.

I then realised that the mouse pointer should follow the point to the centre
of the window. No problem,
self.WarpPointer(self.GetClientSize()[0]/2,self.GetClientSize()[1]/2) to
quote the doc, "Moves the pointer to the given position on the window."

To my surprise, when I added the above to my procedure I see the the move
double! So ... it appears that WarpPointer also scrolls the window content!

I'm running Fedora, Python 2.7, and locate glcanvas.py returns:
/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/glcanvas.py

This isn't a problem, but is the behaviour expected, a bug, or some platform
dependent phenomenon?

TIA

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/WarpPointer-side-effect-in-GLCanvas-tp5717255.html
Sent from the wxPython-users mailing list archive at Nabble.com.

D'oh! .. it's obvious WarpPointer causes the wx.EVT_MOTION event.

I love programming forums. Expressing the problem in writing makes one
think. :wink:

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/WarpPointer-side-effect-in-GLCanvas-tp5717255p5717256.html
Sent from the wxPython-users mailing list archive at Nabble.com.