MCPcopy
hub / github.com/malte-wessel/react-custom-scrollbars / hideTracks

Method hideTracks

src/Scrollbars/index.js:406–416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 }
405
406 hideTracks() {
407 if (this.dragging) return;
408 if (this.scrolling) return;
409 if (this.trackMouseOver) return;
410 const { autoHideTimeout } = this.props;
411 clearTimeout(this.hideTracksTimeout);
412 this.hideTracksTimeout = setTimeout(() => {
413 css(this.trackHorizontal, { opacity: 0 });
414 css(this.trackVertical, { opacity: 0 });
415 }, autoHideTimeout);
416 }
417
418 detectScrolling() {
419 if (this.scrolling) return;

Callers 4

handleDragEndAutoHideMethod · 0.95
autoHide.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected