* * @param {TouchEvent|MouseEvent} e
(e)
| 173 | * @param {TouchEvent|MouseEvent} e |
| 174 | */ |
| 175 | function touchEnd(e) { |
| 176 | e.preventDefault(); |
| 177 | touchStarted = false; |
| 178 | $scrollbar.classList.remove("active"); |
| 179 | document.removeEventListener("touchmove", touchMove, config); |
| 180 | document.removeEventListener("mousemove", touchMove, config); |
| 181 | document.removeEventListener("touchend", touchEnd, config); |
| 182 | document.removeEventListener("mouseup", touchEnd, config); |
| 183 | document.removeEventListener("touchcancel", touchEnd, config); |
| 184 | if (typeof $scrollbar.onScrollEnd === "function") $scrollbar.onScrollEnd(); |
| 185 | scrollbarTimeoutHide = setTimeout(hide, TIMEOUT); |
| 186 | } |
| 187 | |
| 188 | function resize(render = true) { |
| 189 | rect = $scrollbar.getBoundingClientRect(); |
nothing calls this directly
no test coverage detected