Fix double-click-to-zoom issue with previous position

Douple click to zoom an item and double-clicking again should now always correctly go back to the previous position.
This commit is contained in:
Rebecca Breu 2021-07-11 22:02:56 +02:00
parent 08f44a2fb0
commit 18a60f08fa
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,14 @@
0.1.1 - (unreleased)
====================
Fixed
-----
* Douple click to zoom an item and double-clicking again should now always
correctly go back to the previous position
0.1.0 - 2021-07-10
==================

View file

@ -468,6 +468,8 @@ class BeeGraphicsView(QtWidgets.QGraphicsView, ActionsMixin):
width higher on top and bottom. This gives the impression of
an infinite canvas."""
if self.previous_transform:
return
logger.debug('Recalculating scene rectangle...')
try:
topleft = self.mapFromScene(