This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app
Penar Musaraj a96f22cd67
FIX: Calculate header offset once on load (#18669)
Multiple things in the app need the height of the header to be correct (for example, scrolling to a post), so we need the header offset calculation. However, we shouldn't be calculating it on scroll, it's too resource intensive and it causes flickering on iPads (and possible other devices too).

This commit removes header offset calculation on scroll and adds a one-time calculation as soon as the header is first rendered. This ensures that users get scrolled to the correct post even if they open it in a new tab.
2022-10-19 12:07:44 -04:00
..
adapters FIX: Avoid duplicate topic-list requests (#18073) 2022-08-24 11:54:01 +01:00
components FIX: Calculate header offset once on load (#18669) 2022-10-19 12:07:44 -04:00
controllers FIX: sidebar_list_destination on CurrentUserSerializer (#18660) 2022-10-19 11:48:36 +11:00
helpers FEATURE: site setting to disable usernames in share links. (#18315) 2022-09-22 23:12:39 +05:30
initializers DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
lib DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
mixins FIX: Show error if field is same as password (#18529) 2022-10-10 20:00:52 +03:00
models FIX: sidebar_list_destination on CurrentUserSerializer (#18660) 2022-10-19 11:48:36 +11:00
modifiers DEV: Install ember-modifier and @ember/render-modifiers (#17595) 2022-07-21 18:12:29 +01:00
pre-initializers DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
raw-views DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
routes FEATURE: allow user to set preferred sidebar list destination (#18594) 2022-10-18 13:21:52 +11:00
services FIX: 404 sending beacon "leave all" on subfolder install 2022-09-27 19:57:38 +01:00
styles DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
templates DEV: add currentPath arg to above-site-header plugin outlet 2022-10-18 21:25:46 -07:00
widgets A11Y: Return focus to header search button upon escape of search (#18656) 2022-10-18 15:01:09 -07:00
app.js DEV: Modernize Ember Resolver (#17353) 2022-07-06 14:20:00 +01:00
index.html DEV: Preload CSS in the <head> (#17322) 2022-07-05 00:23:09 +08:00
mapping-router.js DEV: Improve and document __container__ workaround in tests (#15498) 2022-01-10 10:34:08 +00:00