diff options
| author | Stephen Blott | 2016-03-16 11:18:28 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-16 11:18:34 +0000 | 
| commit | d53ce1494676fb47504d7822f39efe474ffa080b (patch) | |
| tree | 84f3f37d87eaac57b9c112575ef166f66d5d8fdf /tests | |
| parent | aa35d7fe5eae257bc67e13f2f8d3f06442d428c7 (diff) | |
| download | vimium-d53ce1494676fb47504d7822f39efe474ffa080b.tar.bz2 | |
Relocate first scrollable element.
When the scrollers `activatedElement` isn't scrollable, we currently
search up the DOM tree for the next scrollable thing, and stop at
`document.body`.  However, it can be that that isn't scrollable.
When that happens, this commit searches for a scrollable element in the
same way as it does when the frame initially loads.  This makes it
possible to restart scrolling on pages like this one:
  - http://redux.js.org/docs/basics/UsageWithReact.html
after clicking one of index links.
Inspired by example posted by @marlun in #425.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
