Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
always translate at the speed of the mouse cursor, regardless of curr…
Browse files Browse the repository at this point in the history
…ent scale factor
  • Loading branch information
langalex committed May 20, 2010
1 parent 9a8bb7b commit 02b91bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _attachments/javascripts/screen.js
Expand Up @@ -107,8 +107,8 @@ var Screen = {
},

do_translate: function(delta_x, delta_y) {
this.screen.translate_x += delta_x / this.screen.scale;
this.screen.translate_y += delta_y / this.screen.scale;
this.screen.translate_x += delta_x;
this.screen.translate_y += delta_y;
this.update_canvas();

},
Expand Down

0 comments on commit 02b91bf

Please sign in to comment.