File tree 1 file changed +2
-3
lines changed
Filter options
1 file changed +2
-3
lines changed
Original file line number Diff line number Diff line change @@ -3064,15 +3064,14 @@ def _onmove(self, event):
3064
3064
xy = np .array ([event .xdata , event .ydata ])
3065
3065
xy_press = np .array ([self ._eventpress .xdata , self ._eventpress .ydata ])
3066
3066
3067
- # The calculations are done for rotation at zero: we apply inverse
3068
- # transformation to events except when we rotate and move
3069
3067
state = self ._state
3070
3068
rotate = ('rotate' in state and
3071
3069
self ._active_handle in self ._corner_order )
3072
3070
move = self ._active_handle == 'C'
3073
3071
resize = self ._active_handle and not move
3074
3072
3075
- if not move and not rotate :
3073
+ if resize :
3074
+ # If resizing, use xy/xy_press in a de-rotated frame
3076
3075
inv_tr = self ._get_rotation_transform ().inverted ()
3077
3076
xy = inv_tr .transform (xy )
3078
3077
xy_press = inv_tr .transform (xy_press )
You can’t perform that action at this time.
0 commit comments