Bug 319637 - Annotations click box does not scale with zoom
Summary: Annotations click box does not scale with zoom
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.60
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 17:13 UTC by Till Schäfer
Modified: 2020-11-23 23:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.4


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2013-05-10 17:13:01 UTC
I tested this only with the note annotations in pdfs: 

When zooming further into a document the annotations symbol is zooming with the text, but it becomes harder to click/hit it with the mouse. It seems that the click area is not zooming with the text. On very high zoom levels it becomes nearly impossible to delete a note by mouse. 

Reproducible: Always
Comment 1 Albert Astals Cid 2013-05-16 21:53:01 UTC
Git commit c9964acdc6ca60876bc7f62da5ef10cd8f8e0d28 by Albert Astals Cid.
Committed on 16/05/2013 at 23:51.
Pushed by aacid into branch 'KDE/4.10'.

Fix clicking on notes being hard on high zooms

It is still not perfect because for some reason poppler is painting outside the boundaries box (or we are not creating/setting it correctly)
but at least now it's not ultra hard to click in a note application at high zoom

FIXED-IN: 4.10.4

M  +7    -3    core/annotations.cpp

http://commits.kde.org/okular/c9964acdc6ca60876bc7f62da5ef10cd8f8e0d28
Comment 2 Till Schäfer 2013-06-07 15:21:58 UTC
REOPENING

I can confirm that the current symbols are better clickable than before, but the issue is not resolved. 

experienced in KDE 4.10.4:
On a very small zoom level the hit box is about twice the size of the icon. When zoomed further in, the hit box is only half the size of the symbol. 

Therefore the problem is not a statically wrong bounding box (e.g. 50% of the symbol size). The problem is still inside the zoom behavior.
Comment 3 Till Schäfer 2013-06-07 15:47:24 UTC
I looked in the code and it seems like the rectangle with size 24 is there to guarantee a rectangle of size 24x24 at minimum. Therefore this may be a workaround to avoid hard clicking, when zooming far out. Maybe this is also the cause of my observation above. 

Anyway: you may want to change the comment if you can confirm my analysis.
Comment 4 Justin Zobel 2020-11-20 03:11:35 UTC
Thanks for the report Till. Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 5 Till Schäfer 2020-11-23 23:07:08 UTC
This seems to be resolved in my setup with KDE Apps 20.08.3. The clickable box does still not entirely match the pop-up note icon, but there is no zoom change involved. 


Operating System: Gentoo Linux
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1
Kernel Version: 5.9.9-gentoo
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 23.4 GiB of RAM
Graphics Processor: GeForce GTX 970/PCIe/SSE2
Comment 6 Till Schäfer 2020-11-23 23:08:52 UTC
btw: thx for coming back to this old bug report :)