discourse/app/assets/javascripts
Penar Musaraj fe3d82a44a
FIX: Respect the End key when last post is already rendered (#28524)
Given we are a single-page-app, we hijack the browser's default behavior
for keyboard shortcuts like End because on long topics (20+ posts) we
need to load the last post before really reaching the end of the page.

However, when the last post is already rendered, the End shortcut
currently does nothing, it takes the user to the start of the last post.
If that post is too long, the user will have to scroll down manually.

This change ensures that if the last post of a topic is already rendered
(whether it is in the viewport or not), pressing End will take the user
to the very bottom of the page.

Note for the reviewer: the test added here is for the general case, it
is too hard to test the case where the last post is already rendered,
that isn't covered here.
2024-08-26 14:39:30 -04:00
..
admin FIX: allows to manually remove error for virtual fields (#28555) 2024-08-26 20:32:46 +02:00
custom-proxy Build(deps-dev): Bump glob from 10.4.2 to 10.4.3 (#27751) 2024-07-08 08:40:31 +08:00
deprecation-silencer DEV: Silence whitespace-eating-comment warnings (#27129) 2024-05-22 16:21:51 +02:00
dialog-holder Build(deps-dev): Bump webpack from 5.93.0 to 5.94.0 (#28501) 2024-08-23 01:51:21 +02:00
discourse FIX: Respect the End key when last post is already rendered (#28524) 2024-08-26 14:39:30 -04:00
discourse-common DEV: "Downgrade" @ember/string from 4.x to 3.x (#28553) 2024-08-26 17:48:40 +02:00
discourse-hbr DEV: Convert discourse-hbr to a regular package (#26562) 2024-04-08 20:00:34 +01:00
discourse-i18n UX: respect current locale on topic map views date format (#28199) 2024-08-05 13:18:48 -03:00
discourse-markdown-it UX: do not check for dimensions in video filename (#28349) 2024-08-15 11:59:13 -04:00
discourse-plugins Build(deps-dev): Bump webpack from 5.93.0 to 5.94.0 (#28501) 2024-08-23 01:51:21 +02:00
discourse-widget-hbs Build(deps-dev): Bump webpack from 5.93.0 to 5.94.0 (#28501) 2024-08-23 01:51:21 +02:00
docs
ember-addons
ember-cli-progress-ci PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
ember-production-deprecations DEV: Update ember-cli-deprecation-workflow from 2.2.0 to 3.0.1 (#28226) 2024-08-07 17:59:42 +02:00
float-kit UX: centralise DMenu mobile styling + fixes (#28469) 2024-08-23 17:56:35 +02:00
locales FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
pretty-text Build(deps-dev): Bump webpack from 5.93.0 to 5.94.0 (#28501) 2024-08-23 01:51:21 +02:00
select-kit DEV: "Downgrade" @ember/string from 4.x to 3.x (#28553) 2024-08-26 17:48:40 +02:00
theme-transpiler Build(deps): Bump @babel/standalone in the babel group (#28532) 2024-08-26 14:13:24 +02:00
truth-helpers Build(deps): Bump ember-auto-import from 2.7.3 to 2.7.4 (#27615) 2024-06-26 01:35:06 +02:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb DEV: Drop workbox dependency (#26735) 2024-04-24 10:19:12 +01:00