Snapped position to cursor
This commit is contained in:
parent
aa7bb5ff25
commit
62e0888afe
@ -139,11 +139,10 @@ function Cursor(rune)
|
|||||||
|
|
||||||
this.mouse_move = function(position)
|
this.mouse_move = function(position)
|
||||||
{
|
{
|
||||||
this.update_element(position);
|
|
||||||
|
|
||||||
if(this.magnetism){
|
if(this.magnetism){
|
||||||
position = this.magnetic_position(position);
|
position = this.magnetic_position(position);
|
||||||
}
|
}
|
||||||
|
this.update_element(position);
|
||||||
|
|
||||||
this.position = position;
|
this.position = position;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user