Topic on Extension talk:Translate

Disabling fancy proofreading effects

5
Summary by Nikerabbit
if ( $( document.body ).is( '.mw-special-Translate' ) ) { $.fx.off = true; }
Kranix (talkcontribs)

Is it possible to disable the 'smooth' downward scrolling each time a proofreading is saved? Proofreading can be done rather quickly if most translations are correct, so the time waiting for this effect to finish is not insignificant.

Nikerabbit (talkcontribs)

The scrolling event is very fast and non-disturbing for me (it takes longer to download the message documentation which I usually want to see). Is this not the case for you?


Without scrolling the window would eventually go out of viewport, and without any smoothness it can be confusing that a scroll actually happened.

Kranix (talkcontribs)

It is quite fast, perhaps 0.3 seconds or so. It's not much, but does add up when proofreading many short items. The documentation loads instantaneously for me. I can see quite easily when a scroll has happened, so I'd just like an option to turn it off. A bit of CSS would probably accomplish it, but I don't know CSS.

Nikerabbit (talkcontribs)

You could add something like the following to your common.js to disable all animations on the page.

if ( $( document.body ).is( '.mw-special-Translate' ) ) { $.fx.off = true; }
Kranix (talkcontribs)

Thank you. This works.