Bug 388450 - Popup-note annotations don't scroll with the document
Summary: Popup-note annotations don't scroll with the document
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-02 10:28 UTC by Oliver Sander
Modified: 2020-06-22 17:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Sander 2018-01-02 10:28:48 UTC
Add a popup-note annotation to any pdf file. When the annotation is open, the opened annotation window will not scroll along with the document.

This happens with okular & poppler from today's git master on Debian testing.

While I am not 100% sure that the described behavior is a bug, it can nevertheless get you into trouble: You can move the open annotation by holding the left mouse button when the mouse is over the annotation title bar.  In particular, you can move it upward until it disappears under the Okular menu bar.  Once you are there the annotation is stuck: you cannot move it with the mouse because the annotation title bar is hidden.  And since it doesn't react to scrolling either I have not found a way to select/move/close/delete such an annotation.
Comment 1 Albert Astals Cid 2018-01-24 23:44:25 UTC
I don't think i can reproduce this (or i don't understand what you mean).

Can anyone else try?

Or can you try to attach a video of it?
Comment 2 Oliver Sander 2018-01-25 16:18:01 UTC
I uploaded a video to

  https://cloudstore.zih.tu-dresden.de/index.php/s/5n3fBRLuPlbdUr5
Comment 3 Albert Astals Cid 2018-02-01 21:59:17 UTC
Not scrolling is fine, as far as i see it, they live in their own layer.

The problem is that you can drag them outside of the view and then there's no way to drag them back in because the draggable part is not in the viewport anymore
Comment 4 Dileep Sankhla 2018-02-09 08:09:26 UTC
Should be the patch related to avoid dragging of the annotation window outside of the viewport?
Comment 5 Oliver Sander 2018-02-09 08:26:01 UTC
I guess.

On the other hand I kind of expect them to scroll with the document anyway.  What if I want to open several of them and scroll back and forth between them?  Currently that would totally clutter my viewport.
Comment 6 Dileep Sankhla 2018-02-09 09:47:09 UTC
Should the annotation window allow to be dragged outside of the viewport by using the mouse left button unless it is the border of the pdf view?

I have almost got the idea and I want to work on this feature request if no other one is working on it.
Comment 7 Albert Astals Cid 2018-02-09 21:45:29 UTC
(In reply to Oliver Sander from comment #5)
> I guess.
> 
> On the other hand I kind of expect them to scroll with the document anyway. 
> What if I want to open several of them and scroll back and forth between
> them?  Currently that would totally clutter my viewport.

Is that an actual use case? Or just a "i thought about this and it seems nice but i really never have more than 1 or 2 annotations open"
Comment 8 Nate Graham 2018-02-09 22:16:31 UTC
I use this feature and would appreciated the requested behavior. Here's my use case:

You use pop-up note annotations to write notes for yourself and others throughout the document. Because they don't scroll, your screen will fill up with overlapping annotations unless you close them as soon as you create them. But then as you scroll through the document, you'll have to repeatedly click on the annotations to open them as they scroll into view, is a pain and offers poor usability. If open notes scrolled with the rest of the documents as requested here, then you won't need to repeatedly close and open annotations, and can keep them all open and be able to read them as they come into view, and then stop looking at them once you scroll away from the page they're on.
Comment 9 Oliver Sander 2018-02-12 09:55:40 UTC
I rarely get heavily annotated documents, but what Nate describes seems like a very plausible workflow to me.

Regarding Dileep's question in Comment 6: I think annotations should not be allowed to be dragged outside of the viewport, even if they do scroll along with the document.  Rationale: I could probably still get them stuck, for example by scrolling to the top of the document, and moving the annotation upwards until it is outside of the viewport.