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

Crash #6

Open
JackieLam opened this issue Dec 3, 2018 · 1 comment
Open

Crash #6

JackieLam opened this issue Dec 3, 2018 · 1 comment

Comments

@JackieLam
Copy link

It crashed somehow. Not sure whether the map is too large.

Traceback (most recent call last):
File "C:\Users\I310276\AppData\Roaming\Sublime Text 3\Packages\CodeAtlas\CodeViewPy\codeview.py", line 160, in wheelEvent
factor = 1.001 ** event.delta()
AttributeError: 'QWheelEvent' object has no attribute 'delta'

@JackieLam
Copy link
Author

factor = 1.001 ** event.delta()

In PyQt5, should use the following instead:

factor = 1.001 ** event.angleDelta().y() // I'm not sure whether we should use "y()" here. Seems weird when I scrolled the mouse in the frontend. But at least the program would not crash.

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