scroll-depth
scroll-depth copied to clipboard
Feature: elements with marks
This pull request allows to check marks on elements the same way it is done on the document. In this basic implementation it uses the same marks as the document (the onces returned by calculateMarks).
The default behavior still checks for the element to be scrolled into view. This supports backward compatibility.
To enable the marks on elements, there is a new option: elementsWithMarks : true (default is false).