MCPcopy Index your code
hub / github.com/ether/etherpad / _triggerScrollWithAnimation

Method _triggerScrollWithAnimation

src/static/js/scroll.ts:249–258  ·  view source on GitHub ↗
($elem:any, pixelsToScroll: number, durationOfAnimationToShowFocusline: number)

Source from the content-addressed store, hash-verified

247 };
248
249 _triggerScrollWithAnimation($elem:any, pixelsToScroll: number, durationOfAnimationToShowFocusline: number) {
250 // clear the queue of animation
251 $elem.stop('scrollanimation');
252 $elem.animate({
253 scrollTop: `+=${pixelsToScroll}`,
254 }, {
255 duration: durationOfAnimationToShowFocusline,
256 queue: 'scrollanimation',
257 }).dequeue('scrollanimation');
258 };
259
260
261

Callers 1

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected