dist/wolfcage.dev.js
// Setup the slider (zoomer)
Setup the slider (zoomer)
Setup the slider ( zoomer )
_setupSlider() {
    var isSliderInDragMode, sliderContainerElem, sliderText;
    sliderContainerElem = DOM.elemById('TOPROWEDITOR', 'SLIDER_CONTAINER');
    sliderContainerElem.style.width = this._totalWidth + "px";
    this._sliderElem.style.width = (this._colWidth * this._sliderCols) + "px";
    sliderText = DOM.elemById('TOPROWEDITOR', 'SLIDER_TEXT');
    isSliderInDragMode = false;
    this._sliderElem.addEventListener('click', () => {
      if (isSliderInDragMode) {
        isSliderInDragMode = false;
        return sliderText.innerText = "Click to Slide";
      } else {
        isSliderInDragMode = true;
        return sliderText.innerText = "Click to Lock";
      }
    });
    this._sliderElem.addEventListener('mousemove', (event) => {
      if (isSliderInDragMode) {
        return this._moveSlider(event);
      }
    });
    return this._sliderInitialOffset = this._getOffsetPosition(this._sliderElem);
  }
_setupSlider ( ) { var isSliderInDragMode , sliderContainerElem , sliderText ; sliderContainerElem = DOM . elemById ( 'TOPROWEDITOR' , 'SLIDER_CONTAINER' ) ; sliderContainerElem . style . width = this . _totalWidth + "px" ; this . _sliderElem . style . width = ( this . _colWidth * this . _sliderCols ) + "px" ; sliderText = DOM . elemById ( 'TOPROWEDITOR' , 'SLIDER_TEXT' ) ; isSliderInDragMode = false ; this . _sliderElem . addEventListener ( 'click' , ( ) => { if ( isSliderInDragMode ) { isSliderInDragMode = false ; return sliderText . innerText = "Click to Slide" ; } else { isSliderInDragMode = true ; return sliderText . innerText = "Click to Lock" ; } } ) ; this . _sliderElem . addEventListener ( 'mousemove' , ( event ) => { if ( isSliderInDragMode ) { return this . _moveSlider ( event ) ; } } ) ; return this . _sliderInitialOffset = this . _getOffsetPosition ( this . _sliderElem ) ; }
Setup the slider (zoomer)
Setup the slider ( zoomer )
// Event handler for when a click occurs while sliding the "zoom" // Event handler for when the mouse moves over the "zoom" slider // Get the initial slider position