Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
support slidestart and slidestop events
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Jul 27, 2012
1 parent 7268df3 commit 98dfce2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/widgets/forms/slider.js
Expand Up @@ -10,6 +10,8 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
(function( $, undefined ) {

$.widget( "mobile.slider", $.mobile.widget, {
widgetEventPrefix: "slide",

options: {
theme: null,
trackTheme: null,
Expand Down Expand Up @@ -177,6 +179,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
}

self.refresh( event );
self._trigger( "start" );
return false;
})
.bind( "vclick", false );
Expand Down Expand Up @@ -212,6 +215,7 @@ $.widget( "mobile.slider", $.mobile.widget, {

self.mouseMoved = false;

self._trigger( "stop" );
return false;
}
});
Expand Down

0 comments on commit 98dfce2

Please sign in to comment.