Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -354,7 +354,11 @@ |
355 | 355 | var _this = this; |
356 | 356 | |
357 | 357 | // scroll to the top of the page (the current step might have been very long, vertically) |
358 | | - $j( 'html, body' ).animate( { scrollTop: 0 }, 'slow' ); |
| 358 | + if ( selectedStepName !== 'file' ) { |
| 359 | + // this is the wrong behavior when selecting files (hides interface), so skip it. |
| 360 | + // also, it breaks scrolling when selecting multiple files at once. |
| 361 | + $j( 'html, body' ).animate( { scrollTop: 0 }, 'slow' ); |
| 362 | + } |
359 | 363 | |
360 | 364 | $j.each( _this.stepNames, function(i, stepName) { |
361 | 365 | |