• Robert Knight's avatar
    Scroll correct Element when scrolling a thread into view · 03ab296f
    Robert Knight authored
    Since the `<thread-list>` is now contained within a scrollable element
    which is not `document.body`, it needs to scroll that element rather
    than the window in order to scroll the element into view.
    
     * Remove the hard-coded selector used to find the scroll root and
       instead search for the closest ancestor element to the
       `<thread-list>` whose computed style has `overflowY` set to `scroll`.
     * Set the scroll root Element's `scrollTop` to scroll the thread list
       instead of calling `window.scroll`
     * Compute the maximum scroll offset based on the `scrollTop` and
       `scrollHeight` properties of the scroll root element instead of
       using `document.body.scrollHeight`.
     * Update tests for `<thread-list>` to check for the scrollable
       ancestor being scrolled instead of the window.
    03ab296f
Name
Last commit
Last update
..
components Loading commit data...
directive Loading commit data...
filter Loading commit data...
reducers Loading commit data...
templates Loading commit data...
test Loading commit data...
util Loading commit data...
vendor Loading commit data...
analytics.js Loading commit data...
annotation-mapper.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-ui.js Loading commit data...
app.js Loading commit data...
auth.js Loading commit data...
build-thread.js Loading commit data...
date-util.js Loading commit data...
drafts.js Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.coffee Loading commit data...
form-respond.coffee Loading commit data...
frame-sync.js Loading commit data...
ga.js Loading commit data...
groups.js Loading commit data...
host-config.js Loading commit data...
host.coffee Loading commit data...
live-reload-client.js Loading commit data...
local-storage.coffee Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
oauth-auth.js Loading commit data...
permissions.coffee Loading commit data...
query-parser.coffee Loading commit data...
raven.js Loading commit data...
render-markdown.js Loading commit data...
retry-util.js Loading commit data...
root-thread.js Loading commit data...
search-client.js Loading commit data...
search-filter.coffee Loading commit data...
service-config.js Loading commit data...
service-url.js Loading commit data...
session.js Loading commit data...
store.js Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tabs.js Loading commit data...
tags.coffee Loading commit data...
time.js Loading commit data...
ui-constants.js Loading commit data...
unicode.coffee Loading commit data...
view-filter.coffee Loading commit data...
virtual-thread-list.js Loading commit data...
websocket.js Loading commit data...