From 595c9414ba1097eceaab8323de35075507f64fac Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Sat, 22 Jun 2019 00:50:13 -0700 Subject: [PATCH] [Scheduler] Fix navigator.isInputPending call Must be called as a method. --- packages/scheduler/src/forks/SchedulerHostConfig.default.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/scheduler/src/forks/SchedulerHostConfig.default.js b/packages/scheduler/src/forks/SchedulerHostConfig.default.js index 599e32047e..1fbdff9504 100644 --- a/packages/scheduler/src/forks/SchedulerHostConfig.default.js +++ b/packages/scheduler/src/forks/SchedulerHostConfig.default.js @@ -174,7 +174,7 @@ if ( navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ) { - const isInputPending = navigator.scheduling.isInputPending; + const scheduling = navigator.scheduling; shouldYieldToHost = function() { const currentTime = getCurrentTime(); if (currentTime >= frameDeadline) { @@ -186,7 +186,7 @@ if ( // yield regardless, since there could be a pending paint that wasn't // accompanied by a call to `requestPaint`, or other main thread tasks // like network events. - if (needsPaint || isInputPending()) { + if (needsPaint || scheduling.isInputPending()) { // There is either a pending paint or a pending input. return true; }