Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bower_components/jScrollPane/events.html')
-rw-r--r--libs/bower_components/jScrollPane/events.html62
1 files changed, 61 insertions, 1 deletions
diff --git a/libs/bower_components/jScrollPane/events.html b/libs/bower_components/jScrollPane/events.html
index a782ec9faa..235bab7ee5 100644
--- a/libs/bower_components/jScrollPane/events.html
+++ b/libs/bower_components/jScrollPane/events.html
@@ -26,7 +26,7 @@
</style>
<!-- latest jQuery direct from google's CDN -->
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- the mousewheel plugin -->
<script type="text/javascript" src="script/jquery.mousewheel.js"></script>
<!-- the jScrollPane script -->
@@ -47,6 +47,26 @@
}
)
.bind(
+ 'jsp-will-scroll-x',
+ function(event, destX)
+ {
+ console.log(
+ 'Handle jsp-will-scroll-x', this,
+ 'destX=', destX
+ );
+ }
+ )
+ .bind(
+ 'jsp-will-scroll-y',
+ function(event, destY)
+ {
+ console.log(
+ 'Handle jsp-will-scroll-y', this,
+ 'destY=', destY
+ );
+ }
+ )
+ .bind(
'jsp-scroll-y',
function(event, scrollPositionY, isAtTop, isAtBottom)
{
@@ -77,6 +97,30 @@
'isAtRight=', isAtRight);
}
)
+ .bind(
+ 'jsp-user-scroll-y',
+ function(event, destTop, isAtTop, isAtBottom)
+ {
+ console.log(
+ 'Handle jsp-user-scroll-y', this,
+ 'destTop=', destTop,
+ 'isAtTop=', isAtTop,
+ 'isAtBottom=', isAtBottom
+ );
+ }
+ )
+ .bind(
+ 'jsp-user-scroll-x',
+ function(event, destLeft, isAtLeft, isAtRight)
+ {
+ console.log(
+ 'Handle jsp-user-scroll-x', this,
+ 'destLeft=', destLeft,
+ 'isAtLeft=', isAtLeft,
+ 'isAtRight=', isAtRight
+ );
+ }
+ )
.jScrollPane();
});
</script>
@@ -123,6 +167,22 @@
the viewport). Note that this function isn't dependant on having <a href="settings.html#showArrows">
showArrows</a> set to true, indeed it is most useful when implementing your own arrow keys.
</li>
+ <li>
+ <strong>jsp-user-scroll-y [event, -destTop, isAtTop, isAtBottom]</strong> - Fires only when the
+ scroll is caused by the user. Also, its fired after the actual scroll had happened.
+ </li>
+ <li>
+ <strong>jsp-user-scroll-x [event, -destLeft, isAtLeft, isAtRight]</strong> - Fires only when the
+ scroll is caused by the user. Also, its fired after the actual scroll had happened.
+ </li>
+ <li>
+ <strong>jsp-will-scroll-y [event, destY]</strong> - Fired before the actual scroll had happened.
+ This can be used to disable the scroll functionality if the event.preventDefault() is called.
+ </li>
+ <li>
+ <strong>jsp-will-scroll-x [event, destX]</strong> - Fired before the actual scroll had happened.
+ This can be used to disable the scroll functionality if the event.preventDefault() is called.
+ </li>
</ul>
<h2>Vertical only</h2>