From 8d308fe5f7a83d635ef14e95c8e9abc171f76c7e Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Tue, 26 Nov 2024 14:32:41 +0200 Subject: impelement demo with guaranteed aspect-ratio (esm) --- esm/scripts/slidetray.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'esm/scripts/slidetray.js') diff --git a/esm/scripts/slidetray.js b/esm/scripts/slidetray.js index b34737c..f1ef2f7 100644 --- a/esm/scripts/slidetray.js +++ b/esm/scripts/slidetray.js @@ -16,7 +16,7 @@ const slidetray = (setup) => { theme: 'light', navigation: true, pagination: 'classsic', - keyboard: false, + keyboard: true, touch: true }, @@ -68,6 +68,9 @@ const slidetray = (setup) => { } args.pagination = pagi; } + if (json.keyboard) { + args.keyboard = { enabled: true } + } return args; }, -- cgit v1.2.3