(ev: Event)
| 94 | } |
| 95 | |
| 96 | private updateClientY(ev: Event) { |
| 97 | const target = ev.target as HTMLElement; |
| 98 | |
| 99 | if (this.ignoredElement && this.ignoredElement.contains(target)) { |
| 100 | return; |
| 101 | } |
| 102 | |
| 103 | const scrollEl = this.scrollEl; |
| 104 | ev.preventDefault(); |
| 105 | |
| 106 | const scrollTop = !this.rectIsInScrollIframe ? this.getElScrollTop(scrollEl) : 0; |
| 107 | this.lastClientY = getPointerEvent(ev).clientY * this.zoom - scrollTop; |
| 108 | } |
| 109 | |
| 110 | private getElScrollTop(scrollEl: HTMLElement | Window | undefined) { |
| 111 | return (scrollEl instanceof HTMLElement ? scrollEl.scrollTop : scrollEl?.scrollY) || 0; |
nothing calls this directly
no test coverage detected