danielramosg / sphereofearth

Educational and museographic project for science museums and exhibitions, about cartography, maps and the geometry of the sphere.
Other
5 stars 3 forks source link

Mouse cursor lags behind #7

Open porst17 opened 9 years ago

porst17 commented 9 years ago

On my linux virtual box, the ellipse lags behind the mouse cursor quite a bit (0,5s to 1s). How is this implemented? When I move the cursor fast, the ellipse moves in some kind of animation along all the previous mouse positions until it reaches the final position of the cursor.

danielramosg commented 9 years ago

I added a mask checking so that when the cursor is on the image but outside the map (for maps not rectangulars there is some white space) the ellipse is not computed. This slows a little bit the performance but avoids phantom ellipses. I don't know how to improve performance. On touch screens there will be no such problem.