UltimateLabeling icon indicating copy to clipboard operation
UltimateLabeling copied to clipboard

the picture doesn't scale

Open leaicc opened this issue 4 years ago • 2 comments

Hi,when I scroll the mouse wheel, the picture doesn't scale,do you know how to solve the problem?

leaicc avatar May 07 '20 07:05 leaicc

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.

jaclynnstubbs avatar Sep 04 '20 18:09 jaclynnstubbs

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.

nofreewill42 avatar Aug 15 '21 19:08 nofreewill42