This callback is invoked when the user checks the 'Use Scrollbars'
        box in the preferences pane.
762917
def set_scrollbars_cb(self, w, tf):
        """"""
        scrollbars = 'on' if tf else 'off'
        self.t_.set(scrollbars=scrollbars)
332257
function checkPanelPosition() {
        const currentPanelRect = panel.getBoundingClientRect();

        if (currentPanelRect.top + currentPanelRect.height > getScrollContainerHeight() &&
          !isDocked) {
          dock();
        } else if (
          isDocked &&
          currentPanelRect.top + currentPanelRect.height +
            getScrollContainerScrollTop() >= getInitialUndockedPosition() + TOGGLE_GAP
        ) {
          undock();
        }
      }
211487
public void updateScrollbar()
	{
		UIComponent parent = getParent();
		IScrollable scrollable = getScrollable();
		int delta = 0;// hasVisibleOtherScrollbar() ? scrollThickness() : 0;
		boolean hide = false;
		float offset = offset();
		if (isHorizontal())
		{
			if (scrollable.contentSize().width() <= parent.size().width() - delta)
				hide = true;
		}
		else
		{
			if (scrollable.contentSize().height() <= parent.size().height() - delta)
				hide = true;
		}

		if (hide == isEnabled() || offset < 0)
			scrollTo(0);
		if (offset > 1)
			scrollTo(1);
		//setEnabled(!hide);
		if (autoHide)
			setVisible(!hide);
	}
335741
function handleScrollEnd() {
        scrollingStarted = false;
        ghostScrollStart = null;
        clearTimeout(scrollendTID);
        scope.broadcast('scrollend', buildEventData());
    }
158874
function(oEvent) {
			var iNewScrollLeft = oEvent.target.scrollLeft;
			var iOldScrollLeft = oEvent.target._scrollLeft;

			// For interaction detection.
			Interaction.notifyScrollEvent && Interaction.notifyScrollEvent(oEvent);

			if (iNewScrollLeft !== iOldScrollLeft) {
				var aScrollAreas = HorizontalScrollingHelper.getScrollAreas(this);

				oEvent.target._scrollLeft = iNewScrollLeft;

				// Synchronize the scroll positions.
				for (var i = 0; i < aScrollAreas.length; i++) {
					var oScrollArea = aScrollAreas[i];

					if (oScrollArea !== oEvent.target && oScrollArea.scrollLeft !== iNewScrollLeft) {
						oScrollArea.scrollLeft = iNewScrollLeft;
						oScrollArea._scrollLeft = iNewScrollLeft;
					}
				}

				internal(this).iHorizontalScrollPosition = iNewScrollLeft;
			}
		}
772414
function()
    {
        function callback()
        {
            WebInspector.SidebarPane.prototype.expand.call(this);
        }

        this._stylesSidebarPane._refreshUpdate(null, true, callback.bind(this));
    }
773141
public void scrollLeft() {
        logger.entering();
        WebElement webElement = this.findElement(By.className(SCROLLVIEW_CLASS));
        swipeLeft(webElement);
        logger.exiting();
    }
646788
function() {
			clearTimeout( panEngageTimeout );
			clearInterval( panUpdateInterval );

			var scrollOffset = getScrollOffset();

			if( currentOptions && currentOptions.element ) {
				scrollOffset.x -= ( window.innerWidth - ( currentOptions.width * currentOptions.scale ) ) / 2;
			}

			magnify( scrollOffset.x, scrollOffset.y, 0, 0, 1 );

			level = 1;
		}
1006669
private void notifyAdditionalOnScrollStateChangedListener(AbsListView view, int scrollState) {
        if (mAdditionalOnScrollListener != null) {
            mAdditionalOnScrollListener.onScrollStateChanged(view, scrollState);
        }
    }
714122
function showBusyIndicator(updateCursor) {
        if (!_init) {
            console.error("StatusBar API invoked before status bar created");
            return;
        }

        if (updateCursor) {
            _busyCursor = true;
            $("*").addClass("busyCursor");
        }

        $busyIndicator.addClass("spin");
    }
1334588
private void setVerticalScrollbar(final CmsScrollBar scrollbar, int width) {

        // Validate.
        if ((scrollbar == m_scrollbar) || (scrollbar == null)) {
            return;
        }
        // Detach new child.

        scrollbar.asWidget().removeFromParent();
        // Remove old child.
        if (m_scrollbar != null) {
            if (m_verticalScrollbarHandlerRegistration != null) {
                m_verticalScrollbarHandlerRegistration.removeHandler();
                m_verticalScrollbarHandlerRegistration = null;
            }
            remove(m_scrollbar);
        }
        m_scrollLayer.appendChild(scrollbar.asWidget().getElement());
        adopt(scrollbar.asWidget());

        // Logical attach.
        m_scrollbar = scrollbar;
        m_verticalScrollbarWidth = width;

        // Initialize the new scrollbar.
        m_verticalScrollbarHandlerRegistration = scrollbar.addValueChangeHandler(new ValueChangeHandler<Integer>() {

            public void onValueChange(ValueChangeEvent<Integer> event) {

                int vPos = scrollbar.getVerticalScrollPosition();
                int v = getVerticalScrollPosition();
                if (v != vPos) {
                    setVerticalScrollPosition(vPos);
                }

            }
        });
        maybeUpdateScrollbars();
    }
1173741
function checkPageViewsCriteria() {

    // don't bother if another box is currently open
    if( isAnyBoxVisible() ) {
        return;
    }

    boxes.forEach(function(box) {
        if( ! box.mayAutoShow() ) {
            return;
        }

        if( box.config.trigger.method === 'pageviews' && pageViews >= box.config.trigger.value ) {
            box.trigger();
        }
    });
}
196299
@Override
    public boolean onScroll(ScrollEvent event) {
        lastMovement = System.currentTimeMillis();
        needsDataRefresh = true;
        return false;
    }
930147
protected void registerScrollBarAttributes() {
        addAttributeProcessor(new ScrollBarsOnTopLmlAttribute(), "barsOnTop", "scrollbarsOnTop");
        addAttributeProcessor(new ScrollBarsPositionsLmlAttribute(), "barsPositions", "scrollBarsPositions");
        addAttributeProcessor(new ScrollCancelTouchFocusLmlAttribute(), "cancelTouchFocus");
        addAttributeProcessor(new ScrollClampLmlAttribute(), "clamp");
        addAttributeProcessor(new ScrollDisabledLmlAttribute(), "disable", "disabled", "scrollingDisabled");
        addAttributeProcessor(new ScrollDisabledXLmlAttribute(), "disableX", "disabledX", "scrollingDisabledX");
        addAttributeProcessor(new ScrollDisabledYLmlAttribute(), "disableY", "disabledY", "scrollingDisabledY");
        addAttributeProcessor(new ScrollFadeBarsLmlAttribute(), "fadeBars", "fadeScrollbars");
        addAttributeProcessor(new ScrollFadeBarsSetupLmlAttribute(), "setupFadeScrollBars");
        addAttributeProcessor(new ScrollFlickLmlAttribute(), "flick", "flickScroll");
        addAttributeProcessor(new ScrollFlickTapSquareSizeLmlAttribute(), "flickScrollTapSquareSize", "tapSquareSize");
        addAttributeProcessor(new ScrollFlingTimeLmlAttribute(), "flingTime");
        addAttributeProcessor(new ScrollForceLmlAttribute(), "force", "forceScroll");
        addAttributeProcessor(new ScrollForceXLmlAttribute(), "forceX", "forceScrollX");
        addAttributeProcessor(new ScrollForceYLmlAttribute(), "forceY", "forceScrollY");
        addAttributeProcessor(new ScrollOverscrollLmlAttribute(), "overscroll");
        addAttributeProcessor(new ScrollOverscrollSetupLmlAttribute(), "setupOverscroll");
        addAttributeProcessor(new ScrollOverscrollXLmlAttribute(), "overscrollX");
        addAttributeProcessor(new ScrollOverscrollYLmlAttribute(), "overscrollY");
        addAttributeProcessor(new ScrollPercentLmlAttribute(), "scrollPercent", "percent");
        addAttributeProcessor(new ScrollPercentXLmlAttribute(), "scrollPercentX", "percentX");
        addAttributeProcessor(new ScrollPercentYLmlAttribute(), "scrollPercentY", "percentY");
        addAttributeProcessor(new ScrollVariableSizeKnobsLmlAttribute(), "variableSizeKnobs");
        addAttributeProcessor(new ScrollSmoothLmlAttribute(), "smooth", "smoothScrolling");
        addAttributeProcessor(new ScrollVelocityLmlAttribute(), "velocity");
        addAttributeProcessor(new ScrollVelocityXLmlAttribute(), "velocityX");
        addAttributeProcessor(new ScrollVelocityYLmlAttribute(), "velocityY");
    }
718000
function InfiniteScrollView (options) {
  options || (options = {});
  BaseView.call(this, options);
  InfiniteScrollSetup.call(this, options);
}
541764
private void initializeShowBottomSheetPreference() {
        Preference showBottomSheetPreference =
                findPreference(getString(R.string.show_bottom_sheet_preference_key));
        showBottomSheetPreference.setOnPreferenceClickListener(new OnPreferenceClickListener() {

            @Override
            public boolean onPreferenceClick(final Preference preference) {
                initializeBottomSheet();
                bottomSheet.show();
                return true;
            }

        });
    }
239243
def on_scroll(self):
        """"""
        try:
            sw = self.view['sw_scroller']
        except KeyError:
            return False # destroyed!        
        vadj = sw.get_vadjustment()
        if vadj is None: return False
        val = vadj.get_value()
        
        # is scrolling over?
        if val >= vadj.upper - vadj.page_size:
            self.view.show_vscrollbar()
            return False
        
        vadj.set_value(val+0.5)
        return True