<commit_before>var
	ScrollMath = require('enyo/ScrollMath');

var
	Spotlight = require('spotlight');

module.exports = {
	// We make ourselves a Spotlight container so that 5-way
	// navigation stays within our bounds by default...
	spotlight: 'container',
	// But when focus enters us, we should spot the nearest
	// child, not whichever one was previously focused
	spotlightRememberFocus: false,

	handlers: {
		onRequestScrollIntoView: 'handleRequestScrollIntoView'
	},

	scrollMath: {kind: ScrollMath, kFrictionDamping: 0.93},

	/**
	* Responds to child components' requests to be scrolled into view.
	*
	* @private
	*/
	handleRequestScrollIntoView: function(sender, event) {
		var bubble = false,
			opts = { 
				block: event.scrollFullPage ? 'farthest' : 'farthest'
			};
			//showVertical, showHorizontal;
		if (!Spotlight.getPointerMode() || event.scrollInPointerMode === true) {
			// showVertical = this.showVertical();
			// showHorizontal = this.showHorizontal();
			// this.scrollBounds = this._getScrollBounds();
			// this.setupBounds();
			// this.scrollBounds = null;
			if (this.canScrollX || this.canScrollY) {
				this.scrollToControl(event.originator, opts);
				// if ((showVertical && this.$.scrollMath.bottomBoundary) || (showHorizontal && this.$.scrollMath.rightBoundary)) {
				// 	this.alertThumbs();
				// }
			} else {
				// Scrollers that don't need to scroll bubble their onRequestScrollIntoView,
				// to allow items in nested scrollers to be scrolled
				bubble = true;
			}
		}
		return !bubble;
	}
};<commit_msg>moonstone/Scrollable cleanup<commit_after>var
	ScrollMath = require('enyo/ScrollMath');

var
	Spotlight = require('spotlight');

module.exports = {
	// We make ourselves a Spotlight container so that 5-way
	// navigation stays within our bounds by default...
	spotlight: 'container',
	// But when focus enters us, we should spot the nearest
	// child, not whichever one was previously focused
	spotlightRememberFocus: false,

	handlers: {
		onRequestScrollIntoView: 'handleRequestScrollIntoView'
	},

	scrollMath: {kind: ScrollMath, kFrictionDamping: 0.93},

	/**
	* Responds to child components' requests to be scrolled into view.
	*
	* @private
	*/
	handleRequestScrollIntoView: function(sender, event) {
		var bubble = false,
			opts = {
				block: event.scrollFullPage ? 'farthest' : 'farthest'
			};
		if (!Spotlight.getPointerMode() || event.scrollInPointerMode === true) {
			if (this.canScrollX || this.canScrollY) {
				this.scrollToControl(event.originator, opts);
			} else {
				// If we don't need to scroll, bubble onRequestScrollIntoView so that
				// any scrollers above us in the control hierarchy can scroll as needed
				bubble = true;
			}
		}
		return !bubble;
	}
};
{'fraction_non_alphanumeric': 0.11829134720700986, 'fraction_numerical': 0.0029207740051113546, 'mean_word_length': 3.7241379310344827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3838990', 'n_tokens_mistral': 941, 'n_tokens_neox': 829, 'n_words': 234}