summaryrefslogtreecommitdiff
path: root/js/Headlines.js
AgeCommit message (Collapse)Author
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
2019-03-07Headlines.click: open original article (and mark as read) on alt click on titleAndrew Dolgov
2019-03-07Headlines.click: fix another small issue with expanded mode (2)Andrew Dolgov
2019-03-07Headlines.click: fix another small issue with expanded modeAndrew Dolgov
2019-03-07Headlines.click: open original article when it makes sense to do soAndrew Dolgov
2019-03-07getRange: handle start == stopAndrew Dolgov
2019-03-07tweak Headlines.click: ctrl-click toggles selection, shift-click selects rangeAndrew Dolgov
2019-02-21on_catchup_show_next: remove auto-trigger on headlines scrollAndrew Dolgov
2019-02-14floatingTitle: show collapse button if in expandable modeAndrew Dolgov
2019-02-01label display: fix unneeded nested container in headlines, increase overall ↵Andrew Dolgov
minimalism, fix label element typo (div1)
2019-01-16headlines-frame: set is-vfeed attribute if result is virtual feedAndrew Dolgov
2019-01-03onLoaded: clear this.headlines on first page loadAndrew Dolgov
2019-01-03fix previous always disabling infscrollAndrew Dolgov
2019-01-02headlines onloaded: when appending, check for duplicate IDsAndrew Dolgov
2018-12-18selectionTogglePublished: fix typo which caused it to mark articles insteadAndrew Dolgov
2018-12-18headlines onLoaded: make sure a few more things respect append instead of ↵Andrew Dolgov
offset == 0
2018-12-16append headline buffer if requested, don't just use offsetAndrew Dolgov
2018-12-16also prevent multiple requestsAndrew Dolgov
2018-12-16delay counters request on promise completion a bitAndrew Dolgov
2018-12-13fix missing curly braceJordan Galby
Fix the error: ``` SyntaxError: missing } after property list ```
2018-12-12add fallback colors for headline feed titles based on feed name if favicon ↵Andrew Dolgov
color is not available