mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
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:
parent
08f44a2fb0
commit
18a60f08fa
2 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
==================
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue