()
| 784 | var previousScrollTop = 0, previousScrollHeight = 0, previousContentHeight = 0, stayInLineData = {scrollTop: false, scrollHeight: false, heigth: false, position: {}, setTimeout: false}; |
| 785 | |
| 786 | function getPreviusContentSize() |
| 787 | { |
| 788 | if(!readingViewIs('scroll')) return; |
| 789 | |
| 790 | let contentRight = template._contentRight(); |
| 791 | let content = contentRight.firstElementChild; |
| 792 | let rect = content.getBoundingClientRect(); |
| 793 | |
| 794 | previousContentHeight = rect.height; |
| 795 | previousScrollHeight = content.scrollHeight; |
| 796 | previousScrollTop = content.scrollTop; |
| 797 | } |
| 798 | |
| 799 | function stayInLine(resize = false) |
| 800 | { |
no test coverage detected