Merge pull request #1737 from rndevfx/window-requestAnimationFrame
Use window.requestAnimationFrame in Tabs.jsold
commit
3f1472567e
|
@ -83,7 +83,7 @@ const factory = (Tab, TabContent, FontIcon) => {
|
|||
|
||||
updatePointer = (idx) => {
|
||||
if (this.navigationNode && this.navigationNode.children[idx]) {
|
||||
this.updatePointerAnimationFrame = requestAnimationFrame(() => {
|
||||
this.updatePointerAnimationFrame = window.requestAnimationFrame(() => {
|
||||
const nav = this.navigationNode.getBoundingClientRect();
|
||||
const label = this.navigationNode.children[idx].getBoundingClientRect();
|
||||
const scrollLeft = this.navigationNode.scrollLeft;
|
||||
|
|
Loading…
Reference in New Issue