add Headlines.default_force_previous, default_force_to_top
This commit is contained in:
parent
19893d33e3
commit
b39e615683
|
@ -8,6 +8,8 @@ define(["dojo/_base/declare"], function (declare) {
|
||||||
headlines: [],
|
headlines: [],
|
||||||
current_first_id: 0,
|
current_first_id: 0,
|
||||||
_scroll_reset_timeout: false,
|
_scroll_reset_timeout: false,
|
||||||
|
default_force_previous: false,
|
||||||
|
default_force_to_top: false,
|
||||||
line_scroll_offset: 120, /* px */
|
line_scroll_offset: 120, /* px */
|
||||||
sticky_header_observer: new IntersectionObserver(
|
sticky_header_observer: new IntersectionObserver(
|
||||||
(entries, observer) => {
|
(entries, observer) => {
|
||||||
|
@ -804,8 +806,8 @@ define(["dojo/_base/declare"], function (declare) {
|
||||||
params = params || {};
|
params = params || {};
|
||||||
|
|
||||||
const no_expand = params.no_expand || false;
|
const no_expand = params.no_expand || false;
|
||||||
const force_previous = params.force_previous || false;
|
const force_previous = params.force_previous || this.default_force_previous;
|
||||||
const force_to_top = params.force_to_top || false;
|
const force_to_top = params.force_to_top || this.default_force_to_top;
|
||||||
|
|
||||||
let prev_id = false;
|
let prev_id = false;
|
||||||
let next_id = false;
|
let next_id = false;
|
||||||
|
|
Loading…
Reference in New Issue