UNPKG

@wordpress/dom

Version:
24 lines (22 loc) 736 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isHorizontalEdge; var _isEdge = _interopRequireDefault(require("./is-edge")); /** * Internal dependencies */ /** * Check whether the selection is horizontally at the edge of the container. * * @param {HTMLElement} container Focusable element. * @param {boolean} isReverse Set to true to check left, false for right. * * @return {boolean} True if at the horizontal edge, false if not. */ function isHorizontalEdge(container, isReverse) { return (0, _isEdge.default)(container, isReverse); } //# sourceMappingURL=is-horizontal-edge.js.map