GNOME Bugzilla – Bug 541699
Autoscroll scrolls even if no one is looking
Last modified: 2014-03-01 11:01:00 UTC
Please describe the problem: I noticed that when you have autoscroll on, and you navigate away from the Evince window (removing focus or visibility, or both), autoscroll seems to continue to scroll on anyway. This seems kind of silly to me. If no one is using it (it has no focus), or if no one can even *see* it (no visibility), then why is it scrolling? All it does is disconcert someone who perchance navigates away for a time. No doubt there is some passing rare circumstance in which this is a useful behavior, but I misdoubt greatly that it is common enough to make sense as a default. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Agree.
Created attachment 264606 [details] [review] Proposed patch On window focus lost pause autoscrolling if started, and on window focused again continue scrolling.
Review of attachment 264606 [details] [review]: Thanks for the patch, it makes a lot of sense. However, I wonder whether we actually need new public API for that. Maybe the view could connect to focus in/out of the toplevel window and pause/resume the autoscroll internally.
Created attachment 270547 [details] [review] Stop autoscrolling when view looses focus I have used the view focus in/out to start/stop autoscrolling. Kindly review.
Review of attachment 270547 [details] [review]: Thanks for the patch. I liked the idea of Robert's patch of adding pause/resume methods, since we don't actually want to stop/start the autoscroll and that way we don't need another boolean to know whether scroll is paused. I've merged both patches and pushed them to git master. Thank you both.