Smoother manual control movements

This commit is contained in:
Alessandro Ranellucci 2015-11-08 10:10:54 +01:00
parent 37ecc61d06
commit 9febb10bd7
4 changed files with 12 additions and 6 deletions

View file

@ -58,6 +58,9 @@ sub new {
$canvas->interactive(1);
$canvas->on_move(sub {
my ($pos) = @_;
# delete any pending commands to get a smoother movement
$self->purge_queue(1);
$self->abs_xy_move($pos);
});
$bed_sizer->Add($canvas, 0, wxEXPAND | wxRIGHT, 3);