capacitor-scrollbar-hider
Version:
A Capacitor plugin to hide scrollbars in native WebViews for a cleaner, more native mobile experience.
24 lines (18 loc) • 693 B
JavaScript
;
var core = require('@capacitor/core');
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;
//# sourceMappingURL=plugin.cjs.js.map