mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Convert function to arrow function to fix context
Bug: T364783
Change-Id: I02100e193554fa359b7be2c52d1ee67f63734a2d
(cherry picked from commit 2615070b42
)
This commit is contained in:
parent
32925bc8a2
commit
c2d74f291b
|
@ -155,7 +155,7 @@ ve.init.mw.MobileArticleTarget.prototype.onContainerScroll = function () {
|
|||
// getBoundingClientRect returns incorrect values during scrolling, so make sure to calculate
|
||||
// it only after the scrolling ends (https://openradar.appspot.com/radar?id=6668472289329152).
|
||||
var animateToolbarIntoView;
|
||||
this.onContainerScrollTimer = setTimeout( animateToolbarIntoView = function () {
|
||||
this.onContainerScrollTimer = setTimeout( animateToolbarIntoView = () => {
|
||||
if ( this.toolbarAnimating ) {
|
||||
// We can't do this while the 'transform' transition is happening, because
|
||||
// getBoundingClientRect() returns values that reflect that (and are negative).
|
||||
|
|
Loading…
Reference in a new issue