Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 7 - Pages: 1 - Last Post: 7 Aug 24, 18:13 Last Post By: Laza Threads: [ Previous | Next ]
phil44

Posts: 195
Registered: 18-Jun-2010
"Copy Link" popup disappears too quickly
Posted: 31 Jul 24, 22:10
 
When you click the shares button and hover the "Copy Link" button, a popup appears to copy the album URL, see the attached screenshot. However, this popup disappears by itself after 2-3 seconds, regardless of where the mouse pointer is (above the "Copy Link" button, above the popup, or elsewhere).

This delay is short, very very short. Is there a way to keep this popup open longer (ideally until you click "Copy" or the mouse pointer leaves the popup)?

I have seen this behavior with Firefox and Chrome (so this probably not related to the browser), and on Windows and Android.
Laza

Posts: 1,531
Registered: 6-Sep-2005
Re: "Copy Link" popup disappears too quickly
Posted: 6 Aug 24, 08:50   in response to: phil44 in response to: phil44
 
The popup shows as long as the mouse is over the popup. On touch-driven devices, there's no mouse leave event, so the popup needs to be closed automatically. Now it's 3 secs, but I can make it somewhat longer. I made it 4 seconds for the next version, but making the delay longer can be irritating.
phil44

Posts: 195
Registered: 18-Jun-2010
Re: "Copy Link" popup disappears too quickly
Posted: 6 Aug 24, 09:37   in response to: Laza in response to: Laza
 
Laza wrote:
The popup shows as long as the mouse is over the popup.
This does not work on my side. Even if the mouse is over the popup, this one disappears after 3 seconds without moving the mouse. The popup remains visible as long as the mouse moves...
On touch-driven devices, there's no mouse leave event, so the popup needs to be closed automatically. Now it's 3 secs, but I can make it somewhat longer. I made it 4 seconds for the next version, but making the delay longer can be irritating.
Laza

Posts: 1,531
Registered: 6-Sep-2005
Re: "Copy Link" popup disappears too quickly
Posted: 6 Aug 24, 10:54   in response to: phil44 in response to: phil44
 
It can happen there are different types of mice. For example, a touchpad mouse might emulate a real mouse but trigger different mouse leave events. The JS function listens to the mouseenter and mouseleave events and does not monitor mousemove events.
phil44

Posts: 195
Registered: 18-Jun-2010
Re: "Copy Link" popup disappears too quickly
Posted: 6 Aug 24, 17:07   in response to: Laza in response to: Laza
 
Attachment Stack.jpg (9.9 KB)
Laza wrote:
...The JS function listens to the mouseenter and mouseleave events and does not monitor mousemove events.
Technically speaking, this seems not to be the case. I think this is hideAllTooltips which hides the popup, see the attached stack trace. I got this on the album page when all thumbnails are displayed, no lightbox opened...
Laza

Posts: 1,531
Registered: 6-Sep-2005
Re: "Copy Link" popup disappears too quickly
Posted: 7 Aug 24, 09:26   in response to: phil44 in response to: phil44
Helpful
Attachment laza.lightbox.min.js (42.5 KB)
Attachment laza.lightbox.js (109.0 KB)
Yes, this can happen, that the lightbox's "hide controls on mouse inactivity" functionality triggers this, although the popup does not disappear on my album. I will check how this can happen. Indeed, a layer behind a modal should not trigger hiding tooltips related to the modal.

Edited by: Laza on 7 Aug 2024, 15:27
Try the attached JS files - hopefully, this works better.
phil44

Posts: 195
Registered: 18-Jun-2010
Re: "Copy Link" popup disappears too quickly
Posted: 7 Aug 24, 17:28   in response to: Laza in response to: Laza
 
...
Try the attached JS files - hopefully, this works better.
This solves the problem I had seen. The popup remains visible as long as the mouse cursor is over it and I don't see any impact on a mobile, great!

I just have to wait for the publication of the next version, thanks :-)
Laza

Posts: 1,531
Registered: 6-Sep-2005
Re: "Copy Link" popup disappears too quickly
Posted: 7 Aug 24, 18:13   in response to: phil44 in response to: phil44
 
You don't have to wait - it's usable as is. I've just removed a single line.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums