Sha256: d753788dabe58f3da01059d9b951ae817eb69baa1eab62d6b735d12bbe98425b
Contents?: true
Size: 954 Bytes
Versions: 1
Compression:
Stored size: 954 Bytes
Contents
/* eslint-disable */ import updateGeometry from '../update-geometry'; export default function (i) { // const element = i.element; i.event.bind(i.scrollbarY, 'mousedown', (e) => e.stopPropagation()); i.event.bind(i.scrollbarYRail, 'mousedown', (e) => { const positionTop = e.pageY - window.pageYOffset - i.scrollbarYRail.getBoundingClientRect().top; const direction = positionTop > i.scrollbarYTop ? 1 : -1; i.element.scrollTop += direction * i.containerHeight; updateGeometry(i); e.stopPropagation(); }); i.event.bind(i.scrollbarX, 'mousedown', (e) => e.stopPropagation()); i.event.bind(i.scrollbarXRail, 'mousedown', (e) => { const positionLeft = e.pageX - window.pageXOffset - i.scrollbarXRail.getBoundingClientRect().left; const direction = positionLeft > i.scrollbarXLeft ? 1 : -1; i.element.scrollLeft += direction * i.containerWidth; updateGeometry(i); e.stopPropagation(); }); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rubin-collab-theme-0.1.1 | _third_party/mdb-ui-kit/src/js/mdb/perfect-scrollbar/handlers/click-rail.js |