|
@@ -173,6 +173,11 @@ var Reveal = (function(){
|
|
|
|
|
|
linkify();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ if(window.addEventListener){
|
|
|
+ document.addEventListener('DOMMouseScroll', scrollStep, false);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
readURL();
|
|
@@ -676,6 +681,26 @@ var Reveal = (function(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ var stepT=0;
|
|
|
+ function scrollStep(e){
|
|
|
+ clearTimeout(stepT);
|
|
|
+ stepT=setTimeout(function(){
|
|
|
+ if(e.detail>0){
|
|
|
+ if(availableRoutes().down){
|
|
|
+ navigateDown()
|
|
|
+ }else{
|
|
|
+ navigateRight()
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(availableRoutes().up){
|
|
|
+ navigateUp()
|
|
|
+ }else{
|
|
|
+ navigateLeft()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },200);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return {
|
|
|
initialize: initialize,
|