zeroclipboard/ZeroClipboard — pull request #235 by apcollier-glg (2013-09-10 18:59:23+00:00)
Title: scroll detection support to lessen missed mouseout event occurrences

Hi! We ran into a problem with ZeroClipboard involving the following scenario:

1. A continuously paged result set containing result elements with a hovered ZeroClipboard HTML bridge
2. Slow server response
3. Fast user scrolling

The combination of these three conditions would potentially allow a mouseout event to be missed, leaving the HTML bridge positioned in the viewable portion of the document. If the page was later repopulated with a different result set containing a smaller number of results, this out of place HTML bridge would stretch the page and leave a good deal of white space.

While there are few good ways to properly solve missed mouseout events, I believe that performing a check when scrolling will resolve the most common case for this issue. As an alternate solution, window.setTimeout could also be used to call checkBounds().

Thanks!

Andrew