hpfem / agros2d

vf
http://www.agros2d.org/
GNU General Public License v2.0
65 stars 29 forks source link

Moving objects by mouse #125

Open sawickib opened 10 years ago

sawickib commented 10 years ago

This is nothing new, but maybe we could improve a way in which elements are moved in the preprocessor panel. I get used to ++ (it is definitely not intuitive for beginners).

This time I'd like to write about implementation of moving algorithm, which makes object moves "delayed" comparing to the mouse pointer. It is only my guest, but it seems that Agros2D is using MouseMove event, which is not to precise about relative location of the mouse pointer. It shoud be more accurate to store original location of the mousePress event, and calculate difference from current coordinates. Does it make sense?

karban commented 10 years ago

Hi Bartek,

I'll try to implement it. It seems to be less "delayed".

Pavel

On 28.5.2014 00:49, Bartosz Sawicki wrote:

This is nothing new, but maybe we could improve a way in which elements are moved in the preprocessor panel. I get used to ++ (it is definitely not intuitive for beginners).

This time I'd like to write about implementation of moving algorithm, which makes object moves "delayed" comparing to the mouse pointer. It is only my guest, but it seems that Agros2D is using MouseMove event, which is not to precise about relative location of the mouse pointer. It shoud be more accurate to store original location of the mousePress event, and calculate difference from current coordinates. Does it make sense?

— Reply to this email directly or view it on GitHub https://github.com/hpfem/agros2d/issues/125.