add Headlines.default_move_on_expand tunable
This commit is contained in:
parent
1e90feef0e
commit
0578bf8025
|
@ -13,6 +13,7 @@ const Headlines = {
|
|||
_scroll_reset_timeout: false,
|
||||
default_force_previous: false,
|
||||
default_force_to_top: false,
|
||||
default_move_on_expand: true,
|
||||
line_scroll_offset: 120, /* px */
|
||||
sticky_header_observer: new IntersectionObserver(
|
||||
(entries, observer) => {
|
||||
|
@ -255,6 +256,7 @@ const Headlines = {
|
|||
// this would only work if there's enough space
|
||||
App.byId("headlines-frame").scrollTop -= scroll_position_A-scroll_position_B;
|
||||
|
||||
if (this.default_move_on_expand)
|
||||
Article.cdmMoveToId(id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue