UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

40 lines (38 loc) 1.24 kB
/** * DevExtreme (cjs/ui/scroll_view/ui.scrollable.device.js) * Version: 23.2.6 * Build date: Wed May 01 2024 * * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.deviceDependentOptions = void 0; var _devices = _interopRequireDefault(require("../../core/devices")); var _support = require("../../core/utils/support"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj } } const deviceDependentOptions = function() { return [{ device: function() { return !_support.nativeScrolling }, options: { useNative: false } }, { device: function(device) { return !_devices.default.isSimulator() && "desktop" === _devices.default.real().deviceType && "generic" === device.platform }, options: { bounceEnabled: false, scrollByThumb: true, scrollByContent: _support.touch, showScrollbar: "onHover" } }] }; exports.deviceDependentOptions = deviceDependentOptions;