From 8a3ed6d0b74fb98fae09971716c9b4865fa6f279 Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Thu, 10 Dec 2015 13:36:19 +0900 Subject: [PATCH] Add tabindex properties to scrollbars Resolve #425 --- src/js/plugin/instances.js | 2 ++ 1 file changed, 2 insertions(+) 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;