Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image pan and zoom in and out from center are not working 【New 2021】 #27

Open
mu0gua opened this issue Dec 11, 2021 · 0 comments
Open

Comments

@mu0gua
Copy link

mu0gua commented Dec 11, 2021

FROM: #13 (comment)

I also encountered the same problem

I tried to solve him in a bad way

filepath:  roLabelImg-master\libs\canvas.py    line: 159

if Qt.LeftButton & ev.buttons():
            self.MouseMove = ev.pos() - self.preMousePosition
            self.preMousePosition = ev.pos() 
            self.prevPoint = self.pos() + self.MouseMove
            self.move(self.prevPoint)
                
filepath:  roLabelImg-master\libs\canvas.py    line: 225

self.preMousePosition = ev.pos()

If you have any good plan, please contact me, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant