Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving objects by mouse #125

Open
sawickib opened this issue May 27, 2014 · 1 comment
Open

Moving objects by mouse #125

sawickib opened this issue May 27, 2014 · 1 comment

Comments

@sawickib
Copy link
Contributor

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
Copy link
Member

karban commented May 31, 2014

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
#125.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants