From 63c6d67ad516db077f8ceff2fff944f25fe30459 Mon Sep 17 00:00:00 2001 From: Andre Siviero Date: Mon, 20 Jan 2014 20:11:42 -0200 Subject: [PATCH] Implemments Home, End, pageUp, pageDown and Spacebar --- src/perfect-scrollbar.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 2d8de55..bf72081 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -334,6 +334,19 @@ case 40: // down deltaY = -3; break; + case 33: // page up + deltaY = 9; + break; + case 32: // space bar + case 34: // page down + deltaY = -9; + break; + case 35: // end + deltaY = -containerHeight; + break; + case 36: // home + deltaY = containerHeight; + break; default: return; }