mediawiki-extensions-Multim.../resources/mmv/ui
Gergő Tisza fec24e02f7 Refactor progressbar & blur handling
This tries to fix a number of related issues:
* the blurred thumbnail was visible for a split-second sometimes
  when switching back to an already-loaded image. (Presumably when
  JS was sluggish enough to take more than 10 ms to execute.) We
  now check whether the promise is pending before showing a placeholder.
  (More generally, a lot of unnecessary logic was executed when paging
  through already loaded images, like displaying the placeholder, so
  this might make the UI a bit more responsive.)
* the blur could get stuck sometimes - I have seen this a few times,
  but have never been able to reproduce it, so I'm only guessing, but
  maybe the timing was really unfortunate, and we switched back less
  than 10 ms before loading finished. We now remove the blur on every
  branch, just to be sure.
* adding a progress handler to a promise might not have any immediate
  effect, so when switching to an image which was loading, the progress
  bar reacted too late. We now store the progress state per thumbnail
  so it is always available immediately.
* the progress would animate from 0 to its actual state whenever we
  navigated to the image. The change on paging is now instant; the
  progress bar only animates when we are looking at it.
* switching quickly back and forthe between a loaded and a loading
  image resulted in the loading image becoming unblurred. This seems
  fixed now, I'm not sure why. Maybe the "skip on non-pending promise"
  logic affects it somehow.

Also removes some unused things / renames some things which were
confusing, and makes an unrelated fix in the image provider, which kept
amassing fail handlers.

Change-Id: I580becff246f197ec1bc65e82acd422620e35578
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/489
2014-05-01 21:09:28 +00:00
..
img Merge "Fix commons icon to avoid pixelation" 2014-04-10 18:12:34 +00:00
mmv.ui.canvas.js Refactor progressbar & blur handling 2014-05-01 21:09:28 +00:00
mmv.ui.canvas.less Create StripeButtons class, convert reuse button to use it 2014-04-03 23:13:12 +00:00
mmv.ui.canvasButtons.js Track more user actions 2014-04-22 10:20:36 +02:00
mmv.ui.canvasButtons.less Create StripeButtons class, convert reuse button to use it 2014-04-03 23:13:12 +00:00
mmv.ui.categories.js Make Commons link more prominent 2014-04-09 21:45:39 +00:00
mmv.ui.categories.less Use mw-mmv CSS prefix consistently for all things 2014-03-31 21:33:12 +00:00
mmv.ui.description.js Use mw-mmv CSS prefix consistently for all things 2014-03-31 21:33:12 +00:00
mmv.ui.fileUsage.js Use mw-mmv CSS prefix consistently for all things 2014-03-31 21:33:12 +00:00
mmv.ui.fileUsage.less Create StripeButtons class, convert reuse button to use it 2014-04-03 23:13:12 +00:00
mmv.ui.js Add named timeouts to mw.mmv.ui.Element 2014-04-07 21:20:59 +00:00
mmv.ui.metadataPanel.js Merge "Track more user actions" 2014-04-22 18:41:28 +00:00
mmv.ui.metadataPanel.less Show metadata panel immediately. 2014-04-22 16:10:25 +00:00
mmv.ui.permission.js Track more user actions 2014-04-22 10:20:36 +02:00
mmv.ui.permission.less Create StripeButtons class, convert reuse button to use it 2014-04-03 23:13:12 +00:00
mmv.ui.progressBar.js Refactor progressbar & blur handling 2014-05-01 21:09:28 +00:00
mmv.ui.progressBar.less Bigger, badder, animated progress bar 2014-04-22 15:16:56 -07:00
mmv.ui.reuse.dialog.js Track more user actions 2014-04-22 10:20:36 +02:00
mmv.ui.reuse.dialog.less Hide metadata top button texts 2014-04-04 09:11:58 +02:00
mmv.ui.reuse.download.js Display correct file type on download button 2014-04-21 23:51:15 +00:00
mmv.ui.reuse.download.less Split button line adjustment 2014-04-10 14:35:13 +02:00
mmv.ui.reuse.embed.js Merge "Workaround for OOJS ES3 incompatibility" 2014-04-10 06:51:55 +00:00
mmv.ui.reuse.embed.less Adjust OOjs UI TextInputWidget text style 2014-04-11 22:55:50 +00:00
mmv.ui.reuse.share.js Replace current URL generation logic with routing classes 2014-04-16 12:51:38 +02:00
mmv.ui.reuse.share.less Adjust OOjs UI TextInputWidget text style 2014-04-11 22:55:50 +00:00
mmv.ui.reuse.shareembed.less Layout adjustment for explanatory text 2014-04-02 10:45:28 +02:00
mmv.ui.reuse.tab.js Merge "Workaround for OOJS ES3 incompatibility" 2014-04-10 06:51:55 +00:00
mmv.ui.reuse.utils.js Fix issues with size menus after oojs-ui update 2014-04-09 11:46:51 -07:00
mmv.ui.stripeButtons.js Add more survey languages (fr, de, pt/pr-br) 2014-04-22 22:03:32 +00:00
mmv.ui.stripeButtons.less Show a fallback repo icon for the "go to file page" button 2014-04-10 19:09:28 +00:00
mmv.ui.truncatableTextField.js Miscellaneous fixes to truncatable text fields 2014-04-14 17:19:59 +02:00
mmv.ui.truncatableTextField.less Add truncatable text field, use for some fields 2014-04-09 15:53:37 -07:00