After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754789 - Navigation controls disappear when hovering
Navigation controls disappear when hovering
Status: RESOLVED OBSOLETE
Product: gnome-documents
Classification: Core
Component: general
3.17.x
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-09-09 15:53 UTC by Alessandro Bono
Modified: 2021-07-05 11:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
preview: Don't hide navigation controls when hovering (1.36 KB, patch)
2015-09-09 15:54 UTC, Alessandro Bono
committed Details | Review
video showing the problem (470.86 KB, video/webm)
2015-10-19 21:45 UTC, Alessandro Bono
  Details
Show corner case (1.14 KB, patch)
2015-10-19 21:46 UTC, Alessandro Bono
none Details | Review
preview: Don't hide arrows in some cases (1.35 KB, patch)
2015-10-19 23:03 UTC, Alessandro Bono
none Details | Review

Description Alessandro Bono 2015-09-09 15:53:18 UTC
If we leave the pointer hovering the navigation controls, the controls disappear.
Comment 1 Alessandro Bono 2015-09-09 15:54:05 UTC
Created attachment 311007 [details] [review]
preview: Don't hide navigation controls when hovering
Comment 2 Bastien Nocera 2015-09-18 16:36:48 UTC
Review of attachment 311007 [details] [review]:

I wonder if this breaks when mixing touchpad/mouse use and touch. Looks fine otherwise.
Comment 3 Cosimo Cecchi 2015-09-18 17:05:50 UTC
Review of attachment 311007 [details] [review]:

Let's get this in after freeze
Comment 4 Debarshi Ray 2015-09-22 19:55:25 UTC
Just trying to understand what is going on here ...

(In reply to Alessandro Bono from comment #0)
> If we leave the pointer hovering the navigation controls, the controls
> disappear.

Does this only happen if you are hovering over the GdNavBar? If you hover over the previous and next buttons then does it stop the overlaid widgets from getting hidden? Atleast that is what I am seeing.

The existing code assumes that we will stop getting GtkOverlay::motion-notify-event once we enter an overlaid widget. This works for GtkButton::enter-notify-event, but not for GdNavBar::notify::hover. The patch makes it more explicit by introducing a new state tracking variable. I wonder if we should fix GdNavbar to behave more like GtkButton.

Unrelated, but how about using a GtkRevealer instead of Tweener?
Comment 5 Cosimo Cecchi 2015-09-23 00:46:20 UTC
Pushed an even simpler version of this that does not need the additional state.
Debarshi, unfortunately it's not easy to fix GdNavBar to emit signals like that, and I think this patch makes sense as it is.

Attachment 311007 [details] pushed as 1a71b99 - preview: Don't hide navigation controls when hovering
Comment 6 Debarshi Ray 2015-09-29 17:21:31 UTC
(In reply to Cosimo Cecchi from comment #5)
> Pushed an even simpler version of this that does not need the additional
> state.
> Debarshi, unfortunately it's not easy to fix GdNavBar to emit signals like
> that, and I think this patch makes sense as it is.

Ok, cool.
Comment 7 Alessandro Bono 2015-10-19 21:43:11 UTC
There is a corner case not covered by the patch committed. If you hover and unhover quickly on the left/right arrows the function this._motionTimeout() is called while hovering, queuing the autohide. The original patch should fix it, but I don't know if it is the right approach. I'll attach a patch and a video to show the problem.
Comment 8 Alessandro Bono 2015-10-19 21:45:57 UTC
Created attachment 313702 [details]
video showing the problem
Comment 9 Alessandro Bono 2015-10-19 21:46:27 UTC
Created attachment 313703 [details] [review]
Show corner case
Comment 10 Cosimo Cecchi 2015-10-19 21:49:35 UTC
Alessandro, thanks for following up.
Let's go with your original approach then. Could you prepare a patch for that?
Comment 11 Alessandro Bono 2015-10-19 23:03:10 UTC
Created attachment 313705 [details] [review]
preview: Don't hide arrows in some cases
Comment 12 GNOME Infrastructure Team 2021-07-05 11:31:25 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-documents/-/issues/

Thank you for your understanding and your help.