From 0c9992c0e16700b466e9977164519b6461f526ff Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 20 Mar 2018 20:28:53 -0700 Subject: [PATCH] change scheduling to focus on requestIdleCallback --- routes/_components/status/Notification.html | 11 +++++-- routes/_components/status/Status.html | 8 ++++- .../timeline/NotificationVirtualListItem.html | 1 + .../timeline/StatusVirtualListItem.html | 1 + routes/_components/timeline/Timeline.html | 33 +++++++------------ .../_components/virtualList/VirtualList.html | 2 +- .../virtualList/VirtualListContainer.html | 21 +++++------- .../virtualList/VirtualListLazyItem.html | 3 +- .../virtualList/virtualListStore.js | 2 +- routes/_utils/restoreFocus.js | 9 +++++ tests/spec/010-focus.js | 24 ++++++++++++++ 11 files changed, 76 insertions(+), 39 deletions(-) create mode 100644 routes/_utils/restoreFocus.js diff --git a/routes/_components/status/Notification.html b/routes/_components/status/Notification.html index 64e57b98..10b8bf1b 100644 --- a/routes/_components/status/Notification.html +++ b/routes/_components/status/Notification.html @@ -1,5 +1,5 @@ {{#if notification.type === 'mention' || notification.type === 'reblog' || notification.type === 'favourite'}} - + ref:node >