UNPKG

capacitor-scrollbar-hider

Version:

A Capacitor plugin to hide scrollbars in native WebViews for a cleaner, more native mobile experience.

27 lines (20 loc) 819 B
var capacitorScrollbarHider = (function (exports, core) { 'use strict'; const ScrollbarHider = core.registerPlugin('ScrollbarHider', { web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.ScrollbarHiderWeb()), }); class ScrollbarHiderWeb extends core.WebPlugin { async hideScrollbars() { // On web, scrollbars are already hidden via CSS // This is just a no-op for web compatibility console.log('ScrollbarHider: Web scrollbars handled via CSS'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, ScrollbarHiderWeb: ScrollbarHiderWeb }); exports.ScrollbarHider = ScrollbarHider; return exports; })({}, capacitorExports); //# sourceMappingURL=plugin.js.map