UltimateLabeling
UltimateLabeling copied to clipboard
the picture doesn't scale
Hi,when I scroll the mouse wheel, the picture doesn't scale,do you know how to solve the problem?
I had the same issue when using a Windows computer. The wheelEvent function in qt states: "There are two ways to read the wheel event delta: angleDelta() returns the deltas in wheel degrees. pixelDelta() returns the deltas in screen pixels, and is available on platforms that have high-resolution trackpads, such as macOS." So to get it to work on Windows replace pixelDelta with angleDelta in views\image_viewer.py: wheelEvent() function.
On Ubuntu 18.04 I also had to replace pixelDelta to angleDelta in wheelEvent() function in ultimatelabeling/views/image_viewer.py, thank you! I also increased the denominator from 40 to 400 for smoother control.