Skip to content

Commit

Permalink
Mouse click documentation used the wrong "project" function
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceSherwood committed Jul 27, 2021
1 parent 53d57de commit 57d621e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions vpython/vpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -2761,6 +2761,7 @@ def pos(self):
@pos.setter
def pos(self, value):
c = self._canvas
c._autoscale = False
c.center = value+self.axis

@property
Expand All @@ -2770,6 +2771,7 @@ def axis(self):
@axis.setter
def axis(self, value):
c = self._canvas
c._autoscale = False
c.center = self.pos+value # use current self.pos before it is changed by change in c.axis
c.axis = norm(value)
c.range = mag(value)*tan(c.fov/2)
Expand Down
2 changes: 1 addition & 1 deletion vpython/vpython_libraries/glow.min.js

Large diffs are not rendered by default.

0 comments on commit 57d621e

Please sign in to comment.