diff --git a/src/js/plugin/instances.js b/src/js/plugin/instances.js index 7ab4270..0236097 100644 --- a/src/js/plugin/instances.js +++ b/src/js/plugin/instances.js @@ -35,6 +35,7 @@ function Instance(element) { i.scrollbarXRail = d.appendTo(d.e('div', 'ps-scrollbar-x-rail'), element); i.scrollbarX = d.appendTo(d.e('div', 'ps-scrollbar-x'), i.scrollbarXRail); + i.scrollbarX.setAttribute('tabindex', 0); i.scrollbarXActive = null; i.scrollbarXWidth = null; i.scrollbarXLeft = null; @@ -51,6 +52,7 @@ function Instance(element) { i.scrollbarYRail = d.appendTo(d.e('div', 'ps-scrollbar-y-rail'), element); i.scrollbarY = d.appendTo(d.e('div', 'ps-scrollbar-y'), i.scrollbarYRail); + i.scrollbarY.setAttribute('tabindex', 0); i.scrollbarYActive = null; i.scrollbarYHeight = null; i.scrollbarYTop = null;