diff options
Diffstat (limited to 'ui/widgets/spinner.js')
-rw-r--r-- | ui/widgets/spinner.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/widgets/spinner.js b/ui/widgets/spinner.js index c63f4526a..0bc1db230 100644 --- a/ui/widgets/spinner.js +++ b/ui/widgets/spinner.js @@ -140,9 +140,13 @@ $.widget( "ui.spinner", { } }, mousewheel: function( event, delta ) { - if ( !delta ) { + var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ); + var isActive = this.element[ 0 ] === activeElement; + + if ( !isActive || !delta ) { return; } + if ( !this.spinning && !this._start( event ) ) { return false; } |