Commit 02e3a87f authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '321859-awards-handler-native-scroll' into 'master'

Awards handler: replace jquery scrolling with native version

See merge request gitlab-org/gitlab!55157
parents 1ddb6730 adda2752
......@@ -5,6 +5,7 @@ import $ from 'jquery';
import Cookies from 'js-cookie';
import { uniq } from 'lodash';
import * as Emoji from '~/emoji';
import { scrollToElement } from '~/lib/utils/common_utils';
import { dispose, fixTitle } from '~/tooltips';
import { deprecatedCreateFlash as flash } from './flash';
import axios from './lib/utils/axios_utils';
......@@ -495,12 +496,7 @@ export class AwardsHandler {
}
scrollToAwards() {
const options = {
scrollTop: $('.awards').offset().top - 110,
};
// eslint-disable-next-line no-jquery/no-animate
return $('body, html').animate(options, 200);
scrollToElement('.awards', { offset: -110 });
}
addEmojiToFrequentlyUsedList(emoji) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment