HoverZoom+ doesn't respect the show picture delay.
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)
- Go to deviantart.com
- Start scrolling at the homepage or on someone's gallery without moving the cursor.
- 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
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).