summaryrefslogtreecommitdiff
path: root/js/Headlines.js
AgeCommit message (Collapse)Author
2021-02-18rework previous to be even less jumpyAndrew Dolgov
2021-02-18rework previous to be less jumpyAndrew Dolgov
2021-02-18 * use es5 (?) default parameter values for some functionsAndrew Dolgov
* when moving to next article, try to show hsp if its next
2021-02-15render enclosures on the clientAndrew Dolgov
2021-02-15renderToolbar: support empty data i.e. dashboard feedAndrew Dolgov
2021-02-14render headline-specific toolbar on the clientAndrew Dolgov
2021-02-12silence (or fix) a bunch of eslint warningsAndrew Dolgov
2021-01-19add a hack (Headlines.unpackVisible) to workaround against unpack observer ↵Andrew Dolgov
sometimes missing articles
2021-01-17Archive cleanup:Andrew Dolgov
- remove code to manually archive/unarchive articles - remove ttrss_archived_feeds/orig_feed_id handling - the whole thing was implemented for this data to be kept indefinitely; it doesn't make a lot of sense to deal with this stuff now that it is expired after one month anyway (same reasons as feed browser being removed - privacy) - remove "originally from"-related stuff because of the above - also remove unused remaining frontend/backend code related to feed browser (rip)
2021-01-17Select... dropdown: replace dijit Select with DropDownButton, simplify layoutAndrew Dolgov
PluginHost: add HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM Headlines.onActionChanged: removed
2021-01-17remove menu options to manually un/archive articlesAndrew Dolgov
2020-10-21Revert "fix HOOK_ARTICLE_RENDERED_CDM never being called"Andrew Dolgov
This reverts commit e3a522cdc1e7259ec2b573ba2cff3879c25b1128.
2020-10-21Revert "somewhat experimental: disable article packing/unpacking, render ↵Andrew Dolgov
content immediately" This reverts commit ab53591957d877908b89f6874e91c282bf59d165.
2020-10-09fix HOOK_ARTICLE_RENDERED_CDM never being calledAndrew Dolgov
2020-10-09somewhat experimental: disable article packing/unpacking, render content ↵Andrew Dolgov
immediately
2020-06-05eslint-related fixes; move a few things from global context to AppAndrew Dolgov
2020-06-04fix various minor issues reported by eslintAndrew Dolgov
2020-06-04unify prefs/main App objects, remove fake classes, use single static App ↵Andrew Dolgov
object instead
2020-06-04don't use declare() for static objects with no inheritance because ↵Andrew Dolgov
apparently it's not actually needed by AMD
2020-05-25add Headlines.default_force_previous, default_force_to_topAndrew Dolgov
2020-05-22- RIP smooth scrolling and associated hacksAndrew Dolgov
- attempt to make Headlines.move() / Article.cdmMoveToId() behave a bit more intuitively
2020-05-19Headlines.move: add params.force_previous to always move to previous article ↵Andrew Dolgov
in CDM
2020-05-19Headlines.move: use requestAnimationFrame in CDM :(Andrew Dolgov
2020-05-17Headlines.move: when going back to top of active article, use a smarter (?) ↵Andrew Dolgov
offset calculation
2020-05-17rename Headlines.correctHeadlinesOffset() to scrollToArticleId()Andrew Dolgov
invoke it in Article.view() instead of all over the place
2020-05-17Headlines.move: maybe glitch less when moving back to top, etcAndrew Dolgov
2020-05-17implement keyboard-related changes discussed in ↵Andrew Dolgov
https://community.tt-rss.org/t/changing-the-amount-of-scroll-by-arrow-key/3452/7
2020-05-13only enable unpack observer in expanded modeAndrew Dolgov
2020-05-13use intersection observer to unpack visible articles, remove ↵Andrew Dolgov
Headlines.unpackVisible()
2020-05-13remove floating title, use position: sticky for cdm headers insteadAndrew Dolgov
2020-05-09rename cdmScrollToId to cdmMoveToIdAndrew Dolgov
prevent smooth scrolling when going directly to an article
2020-04-17Headlines.renderAgain: scroll instantly to active article when going back to ↵Andrew Dolgov
combined mode on the fly
2020-01-18properly escape quotes when rendering article data to html attributes via ↵Andrew Dolgov
template strings
2020-01-08Headlines.move: fix move to previous article if scrollTop returns a ↵Andrew Dolgov
fractional value for current item
2019-12-17updateCurrentUnread: don't crash if counter element is not availableAndrew Dolgov
2019-12-12show current unread counter on headlines toolbar if sidebar is hiddenAndrew Dolgov
2019-12-10re-enable updates of floating title on scroll, duhAndrew Dolgov
2019-12-10with previous change, we don't actually need to automatically track active ↵Andrew Dolgov
articles now at all in combined mode.
2019-12-10when moving next or previous and currently active article is entirely ↵Andrew Dolgov
invisible, start moving from first visible one
2019-12-10only track active article on scroll if auto catchup is enabledAndrew Dolgov
2019-12-10remove unnecessary "== 1" when checking for init paramsAndrew Dolgov
unsubscribeFeed: check for undefined title correctly
2019-12-10Article.cdmScrollToId: disable smooth scrolling on repeated eventsAndrew Dolgov
2019-12-10combined mode n/p behavior changes:Andrew Dolgov
1. instead of jumping/scrolling sometimes, always scroll by a constant viewport offset unless moving to next/prev article directly 2. when going up and current article is partially above the viewport, move to its top first instead of directly to a previous one 3. instead of previous marking active logic, on scroll in combined mode track first (partially or otherwise) visible article as active
2019-12-09fix fatal error in previous because of event not being passed via ↵Andrew Dolgov
Headlines.move() scrollbypages, etc: make event optional anyway
2019-12-09exp: auto-disable smooth scrolling for repeat hotkey eventsAndrew Dolgov
2019-12-09pgup/pgdn; increase scroll distance to almost entire viewport height (from 90%)Andrew Dolgov
2019-12-05force-disable headlines smooth scrolling when switching feedsAndrew Dolgov
enable smooth scrolling for article frame
2019-12-05pgup/pgdown hotkey normalization:Andrew Dolgov
- pgup/pgdown without modifier scroll headline buffer - shift+pgup/pgdown work similarly to shift+up/down but operating on pages
2019-07-30scroll handler: also invoke lazy load if last article in buffer is currently ↵Andrew Dolgov
active
2019-07-30lazy load (infinite scrolling) changes:Andrew Dolgov
1. invoke Headlines.loadMore() if last article row is close to becoming visible instead of relying on headlines-spacer offset to viewport 2. allow one final last lazy load request if incomplete buffer was received to permit some flexibility with unread counters possible changing while request was generated / serving remainder of articles