hoverzoom icon indicating copy to clipboard operation
hoverzoom copied to clipboard

HoverZoom+ doesn't respect the show picture delay.

Open ChromiaCat opened this issue 1 year ago • 1 comments

ATTENTION! If you don't follow this template then your issue will be immediately closed.

Description of the problem

Sometimes HoverZoom+ will show a picture immediately upon hover instead of respecting the delay set.

Url of the page where the problem occurs (not the image url)

deviantart.com

Steps to reproduce the problem (include image url here)

  1. Go to deviantart.com
  2. Start scrolling at the homepage or on someone's gallery without moving the cursor.
  3. Stop scrolling & move the cursor to position it above an artwork post and HoverZoom+ won't respect the delay set before loading an image.

OS version, extension version

Win10 19045.2965 HoverZoom+ 1.0.218

ChromiaCat avatar Aug 11 '24 01:08 ChromiaCat

Did a bit of digging into this. Not really familiar with the entire codebase yet, but as far as I can trace, the issue stems from this:

https://github.com/extesy/hoverzoom/blob/56713421f1a1d0f312ae8df1ac042d916a7ea210/js/hoverzoom.js#L1072

Most likely is a complication of the scrolling while not moving the mouse. Did a quick test of removing the 'explicitCall' condition and then the delay is respected (in the original form, explicitCall causes the delay to be zero in some instances of scrolling, making the picture appear immediately).

Ashden avatar Jan 01 '25 21:01 Ashden